From 0d0c79773301b6ed5335661783173d9116a84133 Mon Sep 17 00:00:00 2001 From: tibbi Date: Tue, 10 Jan 2023 15:40:42 +0100 Subject: [PATCH] removing an unused function --- .../calendar/pro/activities/MainActivity.kt | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/calendar/pro/activities/MainActivity.kt b/app/src/main/kotlin/com/simplemobiletools/calendar/pro/activities/MainActivity.kt index 1e3d72929..f509a2d6f 100644 --- a/app/src/main/kotlin/com/simplemobiletools/calendar/pro/activities/MainActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/calendar/pro/activities/MainActivity.kt @@ -512,14 +512,10 @@ class MainActivity : SimpleActivity(), RefreshRecyclerViewListener { currentFragments.last().printView() } - fun resetActionBarTitle() { + private fun resetActionBarTitle() { main_menu.updateHintText(getString(R.string.search)) } - fun updateTitle(text: String) { - main_menu.updateHintText(text) - } - private fun showFilterDialog() { FilterEventTypesDialog(this) { refreshViewPager() @@ -1012,6 +1008,7 @@ class MainActivity : SimpleActivity(), RefreshRecyclerViewListener { currentFragments.last().apply { refreshEvents() } + calendar_fab.beGoneIf(currentFragments.size == 1 && config.storedView == YEARLY_VIEW) if (currentFragments.size > 1) { showBackNavigationArrow()