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>) {
|
private fun receivedEvents(events: List<Event>) {
|
||||||
val newHash = events.hashCode()
|
val newHash = events.hashCode()
|
||||||
if (newHash == lastHash) {
|
if (newHash == lastHash || !isAdded) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
lastHash = newHash
|
lastHash = newHash
|
||||||
|
|
Loading…
Reference in New Issue