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…
Reference in New Issue