From e441fb5324ab9d2b7193b575420b5e7a0c2680e7 Mon Sep 17 00:00:00 2001 From: Paul Akhamiogu Date: Sun, 22 Aug 2021 22:08:46 +0100 Subject: [PATCH] update event types filter when events are imported (from ics, holidays birthdays and anniversaries) --- .../simplemobiletools/calendar/pro/activities/MainActivity.kt | 4 ++++ 1 file changed, 4 insertions(+) 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 7356f9b25..b1d420c32 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 @@ -515,6 +515,7 @@ class MainActivity : SimpleActivity(), RefreshRecyclerViewListener { if (result != ImportResult.IMPORT_FAIL) { runOnUiThread { updateViewPager() + setupQuickFilter() } } } @@ -536,6 +537,7 @@ class MainActivity : SimpleActivity(), RefreshRecyclerViewListener { it > 0 -> { toast(R.string.birthdays_added) updateViewPager() + setupQuickFilter() } it == -1 -> toast(R.string.no_new_birthdays) else -> toast(R.string.no_birthdays) @@ -565,6 +567,7 @@ class MainActivity : SimpleActivity(), RefreshRecyclerViewListener { it > 0 -> { toast(R.string.anniversaries_added) updateViewPager() + setupQuickFilter() } it == -1 -> toast(R.string.no_new_anniversaries) else -> toast(R.string.no_anniversaries) @@ -899,6 +902,7 @@ class MainActivity : SimpleActivity(), RefreshRecyclerViewListener { if (it) { runOnUiThread { updateViewPager() + setupQuickFilter() } } }