pull/51/head
kunfei 5 years ago
parent 3f2f5a5e1c
commit 67908efa0f
  1. 3
      app/src/main/java/io/legado/app/ui/main/MainActivity.kt

@ -77,13 +77,12 @@ class MainActivity : VMBaseActivity<MainViewModel>(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()
}
}

Loading…
Cancel
Save