From 67908efa0fbf4c4e2c11a24f36d82c9db48159a0 Mon Sep 17 00:00:00 2001 From: kunfei Date: Sun, 1 Dec 2019 19:09:06 +0800 Subject: [PATCH] up --- app/src/main/java/io/legado/app/ui/main/MainActivity.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/src/main/java/io/legado/app/ui/main/MainActivity.kt b/app/src/main/java/io/legado/app/ui/main/MainActivity.kt index 3268f8244..5d5002f13 100644 --- a/app/src/main/java/io/legado/app/ui/main/MainActivity.kt +++ b/app/src/main/java/io/legado/app/ui/main/MainActivity.kt @@ -77,13 +77,12 @@ class MainActivity : VMBaseActivity(R.layout.activity_main), override fun onPageSelected(position: Int) { pagePosition = position when (position) { - 0, 1 -> bottom_navigation_view.menu.getItem(position).isChecked = true + 0, 1, 3 -> bottom_navigation_view.menu.getItem(position).isChecked = true 2 -> if (showRss()) { bottom_navigation_view.menu.getItem(position).isChecked = true } else { bottom_navigation_view.menu.getItem(3).isChecked = true } - else -> MyFragment() } }