change the default search interval to +- 2 years

This commit is contained in:
tibbi 2023-01-17 11:49:25 +01:00
parent bd8b772e6f
commit 38e49a8e38
2 changed files with 3 additions and 3 deletions

View File

@ -70,7 +70,7 @@ android {
}
dependencies {
implementation 'com.github.SimpleMobileTools:Simple-Commons:edb874aa8f'
implementation 'com.github.SimpleMobileTools:Simple-Commons:ef4829a3dc'
implementation 'androidx.multidex:multidex:2.0.1'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'

View File

@ -1213,8 +1213,8 @@ class MainActivity : SimpleActivity(), RefreshRecyclerViewListener {
search_placeholder_2.beVisibleIf(text.length == 1)
if (text.length >= 2) {
if (search_results_list.adapter == null) {
minFetchedSearchTS = DateTime().minusYears(1).seconds()
maxFetchedSearchTS = DateTime().plusYears(1).seconds()
minFetchedSearchTS = DateTime().minusYears(2).seconds()
maxFetchedSearchTS = DateTime().plusYears(2).seconds()
}
eventsHelper.getEvents(minFetchedSearchTS, maxFetchedSearchTS, searchQuery = text) { events ->