pull/49/head
kunfei 5 years ago
parent ada31b1364
commit d276f37d01
  1. 4
      app/src/main/java/io/legado/app/ui/book/info/BookInfoActivity.kt
  2. 7
      app/src/main/res/layout/activity_book_info.xml

@ -126,9 +126,9 @@ class BookInfoActivity : VMBaseActivity<BookInfoViewModel>(R.layout.activity_boo
private fun showChapter(chapterList: List<BookChapter>) {
viewModel.bookData.value?.let {
if (it.durChapterIndex < chapterList.size) {
tv_toc.text = chapterList[it.durChapterIndex].title
tv_toc.text = getString(R.string.toc_s, chapterList[it.durChapterIndex].title)
} else {
tv_toc.text = chapterList.last().title
tv_toc.text = getString(R.string.toc_s, chapterList.last().title)
}
}
upLoading(false)

@ -76,6 +76,7 @@
android:paddingLeft="5dp"
android:paddingRight="5dp"
android:text="@string/change_origin"
android:textSize="16sp"
app:abt_radius="2dp" />
</LinearLayout>
@ -97,7 +98,7 @@
android:paddingRight="3dp"
android:singleLine="true"
android:text="@string/app_name"
android:textSize="13sp"
android:textSize="14sp"
app:abt_radius="2dp" />
<io.legado.app.lib.theme.view.ATEAccentBgTextView
@ -108,7 +109,7 @@
android:paddingRight="3dp"
android:singleLine="true"
android:text="@string/app_name"
android:textSize="13sp"
android:textSize="14sp"
app:abt_radius="2dp" />
<io.legado.app.lib.theme.view.ATEAccentBgTextView
@ -120,7 +121,7 @@
android:paddingRight="3dp"
android:singleLine="true"
android:text="@string/app_name"
android:textSize="13sp"
android:textSize="14sp"
app:abt_radius="2dp" />
</LinearLayout>

Loading…
Cancel
Save