mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-02-02 19:57:15 +01:00
search for events 1 year to the past or future too
This commit is contained in:
parent
e02ffdb8a6
commit
b7c455bc6a
@ -1208,8 +1208,8 @@ class MainActivity : SimpleActivity(), RefreshRecyclerViewListener {
|
||||
search_placeholder_2.beVisibleIf(text.length == 1)
|
||||
if (text.length >= 2) {
|
||||
if (search_results_list.adapter == null) {
|
||||
minFetchedSearchTS = DateTime().minusMinutes(config.displayPastEvents).seconds()
|
||||
maxFetchedSearchTS = DateTime().plusMonths(6).seconds()
|
||||
minFetchedSearchTS = DateTime().minusYears(1).seconds()
|
||||
maxFetchedSearchTS = DateTime().plusYears(1).seconds()
|
||||
}
|
||||
|
||||
eventsHelper.getEvents(minFetchedSearchTS, maxFetchedSearchTS) { events ->
|
||||
|
Loading…
x
Reference in New Issue
Block a user