From 15a8f6f0c8241bd99f9c27fb3e8acbbce55d104d Mon Sep 17 00:00:00 2001 From: kunfei Date: Sun, 1 Dec 2019 20:25:42 +0800 Subject: [PATCH] up --- app/src/main/java/io/legado/app/ui/main/MainActivity.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 0d47c6813..083dac9b6 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 @@ -143,7 +143,9 @@ class MainActivity : VMBaseActivity(R.layout.activity_main), bottom_navigation_view.menu.findItem(R.id.menu_rss).isVisible = showRss() upFragmentList() view_pager_main.adapter?.notifyDataSetChanged() - bottom_navigation_view.menu.getItem(3).isChecked = true + if (showRss()) { + view_pager_main.setCurrentItem(3, false) + } } }