diff --git a/app/src/main/java/io/legado/app/model/webbook/BookChapterList.kt b/app/src/main/java/io/legado/app/model/webbook/BookChapterList.kt index 8d8b4c22d..c387008a7 100644 --- a/app/src/main/java/io/legado/app/model/webbook/BookChapterList.kt +++ b/app/src/main/java/io/legado/app/model/webbook/BookChapterList.kt @@ -95,6 +95,9 @@ object BookChapterList { val lh = LinkedHashSet(chapterList) chapterList = ArrayList(lh) chapterList.reverse() + for ((index, item) in chapterList.withIndex()) { + item.index = index + } return chapterList } diff --git a/app/src/main/res/layout/item_bookmark.xml b/app/src/main/res/layout/item_bookmark.xml index 7afd9dfa2..58be6b0e7 100644 --- a/app/src/main/res/layout/item_bookmark.xml +++ b/app/src/main/res/layout/item_bookmark.xml @@ -2,7 +2,7 @@ + android:layout_height="wrap_content"> + android:layout_height="wrap_content" + android:background="?android:attr/selectableItemBackground" + android:padding="12dp">