From 2cad9d2f76c649738956669d7eebc7510775dd79 Mon Sep 17 00:00:00 2001 From: kunfei Date: Sun, 1 Dec 2019 19:47:41 +0800 Subject: [PATCH] up --- app/src/main/java/io/legado/app/ui/main/MainActivity.kt | 3 ++- 1 file changed, 2 insertions(+), 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 3a62c0999..0032b665b 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 @@ -123,7 +123,8 @@ class MainActivity : VMBaseActivity(R.layout.activity_main), content_view.upStyle() } observeEvent(PreferKey.showRss) { - recreate() + bottom_navigation_view.menu.findItem(R.id.menu_rss).isVisible = showRss() + view_pager_main.adapter?.notifyDataSetChanged() } }