From 324a30dd84f24de177d609cec4f646081d08074f Mon Sep 17 00:00:00 2001 From: kunfei Date: Mon, 28 Oct 2019 16:59:22 +0800 Subject: [PATCH] up --- 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 81b7888f8..6636eb64b 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 @@ -50,10 +50,10 @@ class MainActivity : VMBaseActivity(R.layout.activity_main), override fun onNavigationItemSelected(item: MenuItem): Boolean { when (item.itemId) { - R.id.menu_bookshelf -> view_pager_main.currentItem = 0 - R.id.menu_find_book -> view_pager_main.currentItem = 1 - R.id.menu_rss -> view_pager_main.currentItem = 2 - R.id.menu_my_config -> view_pager_main.currentItem = 3 + R.id.menu_bookshelf -> view_pager_main.setCurrentItem(0, false) + R.id.menu_find_book -> view_pager_main.setCurrentItem(1, false) + R.id.menu_rss -> view_pager_main.setCurrentItem(2, false) + R.id.menu_my_config -> view_pager_main.setCurrentItem(3, false) } return false }