Skip to content

Commit 6f12ad9

Browse files
authored
Fix saving bookmarks' locations (#460)
1 parent f271c78 commit 6f12ad9

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

test-app/r2-testapp/src/main/java/org/readium/r2/testapp/bookshelf/BookRepository.kt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,7 @@ class BookRepository(private val booksDao: BooksDao) {
5353
resourceHref = locator.href,
5454
resourceType = locator.type,
5555
resourceTitle = locator.title.orEmpty(),
56-
location = Locator.Locations(
57-
progression = locator.locations.progression,
58-
position = locator.locations.position
59-
).toJSON().toString(),
56+
location = locator.locations.toJSON().toString(),
6057
locatorText = Locator.Text().toJSON().toString()
6158
)
6259

0 commit comments

Comments
 (0)