mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-06-05 21:59:17 +02:00
update the calendar only if some birthdays have been added
This commit is contained in:
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user