@ -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
@ -2,7 +2,7 @@
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
android:layout_height="wrap_content">
<TextView
android:id="@+id/tv_chapter_name"
@ -2,7 +2,9 @@
android:layout_height="wrap_content"
android:background="?android:attr/selectableItemBackground"
android:padding="12dp">