fix #967, apply the selected past event list threshold on app too
This commit is contained in:
parent
3656d90841
commit
0326e52fb1
|
@ -58,7 +58,7 @@ android {
|
|||
}
|
||||
|
||||
dependencies {
|
||||
implementation 'com.simplemobiletools:commons:5.16.16'
|
||||
implementation 'com.simplemobiletools:commons:5.16.17'
|
||||
implementation 'joda-time:joda-time:2.10.1'
|
||||
implementation 'androidx.multidex:multidex:2.0.1'
|
||||
implementation 'androidx.constraintlayout:constraintlayout:2.0.0-beta2'
|
||||
|
|
|
@ -72,7 +72,7 @@ class EventListFragment : MyFragmentHolder(), RefreshRecyclerViewListener {
|
|||
|
||||
private fun checkEvents() {
|
||||
if (!wereInitialEventsAdded) {
|
||||
minFetchedTS = DateTime().minusMonths(3).seconds()
|
||||
minFetchedTS = DateTime().minusMinutes(context!!.config.displayPastEvents).seconds()
|
||||
maxFetchedTS = DateTime().plusMonths(6).seconds()
|
||||
}
|
||||
|
||||
|
@ -81,7 +81,6 @@ class EventListFragment : MyFragmentHolder(), RefreshRecyclerViewListener {
|
|||
receivedEvents(it, false)
|
||||
} else {
|
||||
if (!wereInitialEventsAdded) {
|
||||
minFetchedTS -= FETCH_INTERVAL
|
||||
maxFetchedTS += FETCH_INTERVAL
|
||||
}
|
||||
context!!.eventsHelper.getEvents(minFetchedTS, maxFetchedTS) {
|
||||
|
|
Loading…
Reference in New Issue