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 dac8567ed..9a66a4aa2 100644 --- a/app/src/main/kotlin/com/simplemobiletools/calendar/activities/MainActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/calendar/activities/MainActivity.kt @@ -356,8 +356,12 @@ class MainActivity : SimpleActivity(), NavigationListener { } runOnUiThread { - toast(if (birthdaysAdded > 0) R.string.birthdays_added else R.string.no_birthdays) - updateViewPager() + if (birthdaysAdded > 0) { + toast(R.string.birthdays_added) + updateViewPager() + } else { + toast(R.string.no_birthdays) + } } }