From a6f83282c376500f7c778b378d8b2ad189d03760 Mon Sep 17 00:00:00 2001 From: gedoor Date: Wed, 9 Dec 2020 11:32:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/java/io/legado/app/ui/main/MainActivity.kt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 32794d127..4890d22da 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 @@ -205,10 +205,10 @@ class MainActivity : VMBaseActivity(), override fun getItem(position: Int): Fragment { return when (getId(position)) { - 0 -> fragmentMap[0] ?: BookshelfFragment() - 1 -> fragmentMap[1] ?: ExploreFragment() - 2 -> fragmentMap[2] ?: RssFragment() - else -> fragmentMap[3] ?: MyFragment() + 0 -> BookshelfFragment() + 1 -> ExploreFragment() + 2 -> RssFragment() + else -> MyFragment() } }