mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-02-18 12:50:34 +01:00
update the calendar only if some birthdays have been added
This commit is contained in:
parent
6a07393193
commit
044d51d4ea
@ -356,8 +356,12 @@ class MainActivity : SimpleActivity(), NavigationListener {
|
|||||||
}
|
}
|
||||||
|
|
||||||
runOnUiThread {
|
runOnUiThread {
|
||||||
toast(if (birthdaysAdded > 0) R.string.birthdays_added else R.string.no_birthdays)
|
if (birthdaysAdded > 0) {
|
||||||
updateViewPager()
|
toast(R.string.birthdays_added)
|
||||||
|
updateViewPager()
|
||||||
|
} else {
|
||||||
|
toast(R.string.no_birthdays)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user