From 66616dd915132df996e3721662ef95d797997eb5 Mon Sep 17 00:00:00 2001 From: GKF Date: Mon, 3 Jun 2019 16:11:45 +0800 Subject: [PATCH] up --- .../java/io/legado/app/ui/main/MainActivity.kt | 16 ++++------------ 1 file changed, 4 insertions(+), 12 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 8b1a203a4..0daa58ad6 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 @@ -26,18 +26,10 @@ class MainActivity : BaseActivity(), BottomNavigationView.OnNavig 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_book_source -> { - view_pager_main.currentItem = 3 - } - R.id.menu_my_config -> { - view_pager_main.currentItem = 4 - } + R.id.menu_bookshelf -> view_pager_main.currentItem = 0 + R.id.menu_find_book -> view_pager_main.currentItem = 1 + R.id.menu_book_source -> view_pager_main.currentItem = 2 + R.id.menu_my_config -> view_pager_main.currentItem = 3 } return false }