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) + } } }