add a check at dayfragment to ensure it is added

This commit is contained in:
tibbi 2017-10-25 19:55:23 +02:00
parent e562b268ba
commit 88b55eb4cf
1 changed files with 1 additions and 1 deletions

View File

@ -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