really display past events too as appropriate

This commit is contained in:
tibbi 2017-05-24 19:39:25 +02:00
parent 53792443d1
commit b2fe7950a6
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ class EventListFragment : Fragment(), DBHelper.EventUpdateListener, DeleteEvents
} }
private fun checkEvents() { private fun checkEvents() {
val fromTS = DateTime().seconds() val fromTS = DateTime().seconds() - context.config.displayPastEvents * 60
val toTS = DateTime().plusYears(1).seconds() val toTS = DateTime().plusYears(1).seconds()
context.dbHelper.getEvents(fromTS, toTS) { context.dbHelper.getEvents(fromTS, toTS) {
receivedEvents(it) receivedEvents(it)