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_rss).isVisible = showRss
}
bottomMenuCount = 1
var index = 0
if (showDiscovery) {
realPositions[bottomMenuCount] = idExplore
bottomMenuCount++
index++
realPositions[index] = idExplore
}
if (showRss) {
realPositions[bottomMenuCount] = idRss
bottomMenuCount++
index++
realPositions[index] = idRss
}
realPositions[bottomMenuCount] = idMy
bottomMenuCount++
index++
realPositions[index] = idMy
bottomMenuCount = index + 1
}
private fun getFragmentId(position: Int): Int {

Loading…
Cancel
Save