pull/51/head
kunfei 5 years ago
parent 08705be302
commit 15a8f6f0c8
  1. 4
      app/src/main/java/io/legado/app/ui/main/MainActivity.kt

@ -143,7 +143,9 @@ class MainActivity : VMBaseActivity<MainViewModel>(R.layout.activity_main),
bottom_navigation_view.menu.findItem(R.id.menu_rss).isVisible = showRss() bottom_navigation_view.menu.findItem(R.id.menu_rss).isVisible = showRss()
upFragmentList() upFragmentList()
view_pager_main.adapter?.notifyDataSetChanged() view_pager_main.adapter?.notifyDataSetChanged()
bottom_navigation_view.menu.getItem(3).isChecked = true if (showRss()) {
view_pager_main.setCurrentItem(3, false)
}
} }
} }

Loading…
Cancel
Save