leave events hash code comparing to the list adapter itself

This commit is contained in:
tibbi 2018-05-09 22:51:12 +02:00
parent 37dce034ed
commit 74109796bb
1 changed files with 1 additions and 9 deletions

View File

@ -30,7 +30,6 @@ class EventListFragment : MyFragmentHolder(), RefreshRecyclerViewListener {
private var FETCH_INTERVAL = 6 * MONTH_SECONDS
private var mEvents = ArrayList<Event>()
private var prevEventsHash = 0
private var minFetchedTS = 0
private var maxFetchedTS = 0
@ -85,14 +84,7 @@ class EventListFragment : MyFragmentHolder(), RefreshRecyclerViewListener {
return
}
val filtered = context!!.getFilteredEvents(events)
val hash = filtered.hashCode()
if (prevEventsHash == hash) {
return
}
prevEventsHash = hash
mEvents = filtered
mEvents = context!!.getFilteredEvents(events)
val listItems = context!!.getEventListItems(mEvents)
activity?.runOnUiThread {