From c1871ad27a5dbdf91d7bb72271b80fd7ad9f2f13 Mon Sep 17 00:00:00 2001 From: tibbi Date: Fri, 19 Jan 2018 23:20:22 +0100 Subject: [PATCH] remove a searchMenuItem check --- .../simplemobiletools/calendar/activities/MainActivity.kt | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/calendar/activities/MainActivity.kt b/app/src/main/kotlin/com/simplemobiletools/calendar/activities/MainActivity.kt index 2266380cb..e64fed23a 100644 --- a/app/src/main/kotlin/com/simplemobiletools/calendar/activities/MainActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/calendar/activities/MainActivity.kt @@ -88,7 +88,6 @@ class MainActivity : SimpleActivity(), NavigationListener, RefreshRecyclerViewLi super.onCreate(savedInstanceState) setContentView(R.layout.activity_main) appLaunched() - calendar_fab.setOnClickListener { launchNewEventIntent() } checkWhatsNewDialog() if (resources.getBoolean(R.bool.portrait_only)) @@ -121,6 +120,7 @@ class MainActivity : SimpleActivity(), NavigationListener, RefreshRecyclerViewLi refreshCalDAVCalendars(false) } + calendar_fab.setOnClickListener { launchNewEventIntent() } checkOpenIntents() } @@ -176,9 +176,7 @@ class MainActivity : SimpleActivity(), NavigationListener, RefreshRecyclerViewLi findItem(R.id.refresh_caldav_calendars).isVisible = config.caldavSync } - if (mSearchMenuItem == null) { - setupSearch(menu) - } + setupSearch(menu) return true }