From cebd9c0d9aa548f0826854e8145f3274e5d27fec Mon Sep 17 00:00:00 2001 From: kunfei Date: Wed, 14 Aug 2019 12:21:02 +0800 Subject: [PATCH] up --- .../main/java/io/legado/app/model/webbook/BookChapterList.kt | 3 +++ app/src/main/res/layout/item_bookmark.xml | 2 +- app/src/main/res/layout/item_chapter_list.xml | 4 +++- 3 files changed, 7 insertions(+), 2 deletions(-) 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">