mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-02-06 21:43:32 +01:00
add a check at dayfragment to ensure it is added
This commit is contained in:
parent
e562b268ba
commit
88b55eb4cf
@ -116,7 +116,7 @@ class DayFragment : Fragment(), DBHelper.EventUpdateListener, DeleteEventsListen
|
||||
|
||||
private fun receivedEvents(events: List<Event>) {
|
||||
val newHash = events.hashCode()
|
||||
if (newHash == lastHash) {
|
||||
if (newHash == lastHash || !isAdded) {
|
||||
return
|
||||
}
|
||||
lastHash = newHash
|
||||
|
Loading…
x
Reference in New Issue
Block a user