From f43d8483e16463fa4eaebc837fa1be850121116e Mon Sep 17 00:00:00 2001 From: Awesome <1760316362@qq.com> Date: Tue, 4 Jun 2019 16:42:42 +0800 Subject: [PATCH] TitleBar fitStatusBar --- app/src/main/java/io/legado/app/ui/main/MainActivity.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/io/legado/app/ui/main/MainActivity.kt b/app/src/main/java/io/legado/app/ui/main/MainActivity.kt index 936260ce6..e0b1c1aa6 100644 --- a/app/src/main/java/io/legado/app/ui/main/MainActivity.kt +++ b/app/src/main/java/io/legado/app/ui/main/MainActivity.kt @@ -78,7 +78,7 @@ class MainActivity : BaseActivity(), BottomNavigationView.OnNavig } private inner class TabFragmentPageAdapter internal constructor(fm: FragmentManager) : - FragmentStatePagerAdapter(fm, BEHAVIOR_RESUME_ONLY_CURRENT_FRAGMENT) { + FragmentPagerAdapter(fm, BEHAVIOR_RESUME_ONLY_CURRENT_FRAGMENT) { override fun getItem(position: Int): Fragment { return when (position) {