From cff5800940ddcda5b02defcb416bddc465d18e54 Mon Sep 17 00:00:00 2001 From: kunfei Date: Mon, 26 Aug 2019 14:14:44 +0800 Subject: [PATCH] up --- app/src/main/java/io/legado/app/ui/readbook/ReadBookActivity.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/io/legado/app/ui/readbook/ReadBookActivity.kt b/app/src/main/java/io/legado/app/ui/readbook/ReadBookActivity.kt index ae660a2a6..4d2ffe7f1 100644 --- a/app/src/main/java/io/legado/app/ui/readbook/ReadBookActivity.kt +++ b/app/src/main/java/io/legado/app/ui/readbook/ReadBookActivity.kt @@ -258,6 +258,8 @@ class ReadBookActivity : VMBaseActivity(R.layout.activity_rea } read_menu.upReadProgress(it.pageSize(), viewModel.durPageIndex) curPageChanged() + tv_pre.isEnabled = viewModel.durChapterIndex != 0 + tv_next.isEnabled = viewModel.durChapterIndex != viewModel.chapterSize - 1 } }