pull/1738/head
kunfei 3 years ago
parent 8982fed48a
commit e740202869
  1. 15
      app/src/main/java/io/legado/app/ui/main/MainActivity.kt

@ -207,17 +207,18 @@ class MainActivity : VMBaseActivity<ActivityMainBinding, MainViewModel>(),
menu.findItem(R.id.menu_discovery).isVisible = showDiscovery menu.findItem(R.id.menu_discovery).isVisible = showDiscovery
menu.findItem(R.id.menu_rss).isVisible = showRss menu.findItem(R.id.menu_rss).isVisible = showRss
} }
bottomMenuCount = 1 var index = 0
if (showDiscovery) { if (showDiscovery) {
realPositions[bottomMenuCount] = idExplore index++
bottomMenuCount++ realPositions[index] = idExplore
} }
if (showRss) { if (showRss) {
realPositions[bottomMenuCount] = idRss index++
bottomMenuCount++ realPositions[index] = idRss
} }
realPositions[bottomMenuCount] = idMy index++
bottomMenuCount++ realPositions[index] = idMy
bottomMenuCount = index + 1
} }
private fun getFragmentId(position: Int): Int { private fun getFragmentId(position: Int): Int {

Loading…
Cancel
Save