pull/433/head
gedoor 4 years ago
parent 9378bde46e
commit 56ba339f23
  1. 8
      app/src/main/java/io/legado/app/ui/main/MainActivity.kt

@ -191,10 +191,10 @@ class MainActivity : VMBaseActivity<MainViewModel>(R.layout.activity_main),
override fun getItem(position: Int): Fragment { override fun getItem(position: Int): Fragment {
return when (getId(position)) { return when (getId(position)) {
0 -> BookshelfFragment() 0 -> fragmentMap[0] ?: BookshelfFragment()
1 -> ExploreFragment() 1 -> fragmentMap[1] ?: ExploreFragment()
2 -> RssFragment() 2 -> fragmentMap[2] ?: RssFragment()
else -> MyFragment() else -> fragmentMap[3] ?: MyFragment()
} }
} }

Loading…
Cancel
Save