pull/1854/head
kunfei 3 years ago
parent ade7e36c79
commit 048716b4ab
  1. 2
      app/src/main/java/io/legado/app/ui/main/MainActivity.kt

@ -71,7 +71,7 @@ class MainActivity : VMBaseActivity<ActivityMainBinding, MainViewModel>(),
override fun onActivityCreated(savedInstanceState: Bundle?) { override fun onActivityCreated(savedInstanceState: Bundle?) {
upBottomMenu() upBottomMenu()
binding.apply { binding.run {
viewPagerMain.setEdgeEffectColor(primaryColor) viewPagerMain.setEdgeEffectColor(primaryColor)
viewPagerMain.offscreenPageLimit = 3 viewPagerMain.offscreenPageLimit = 3
viewPagerMain.adapter = TabFragmentPageAdapter(supportFragmentManager) viewPagerMain.adapter = TabFragmentPageAdapter(supportFragmentManager)

Loading…
Cancel
Save