update the calendar only if some birthdays have been added

This commit is contained in:
tibbi 2017-10-21 16:41:57 +02:00
parent 6a07393193
commit 044d51d4ea

View file

@ -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)
}
}
}