mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-06-05 21:59:17 +02:00
change the default search interval to +- 2 years
This commit is contained in:
@@ -70,7 +70,7 @@ android {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation 'com.github.SimpleMobileTools:Simple-Commons:edb874aa8f'
|
implementation 'com.github.SimpleMobileTools:Simple-Commons:ef4829a3dc'
|
||||||
implementation 'androidx.multidex:multidex:2.0.1'
|
implementation 'androidx.multidex:multidex:2.0.1'
|
||||||
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
|
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
|
||||||
implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'
|
implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'
|
||||||
|
@@ -1213,8 +1213,8 @@ class MainActivity : SimpleActivity(), RefreshRecyclerViewListener {
|
|||||||
search_placeholder_2.beVisibleIf(text.length == 1)
|
search_placeholder_2.beVisibleIf(text.length == 1)
|
||||||
if (text.length >= 2) {
|
if (text.length >= 2) {
|
||||||
if (search_results_list.adapter == null) {
|
if (search_results_list.adapter == null) {
|
||||||
minFetchedSearchTS = DateTime().minusYears(1).seconds()
|
minFetchedSearchTS = DateTime().minusYears(2).seconds()
|
||||||
maxFetchedSearchTS = DateTime().plusYears(1).seconds()
|
maxFetchedSearchTS = DateTime().plusYears(2).seconds()
|
||||||
}
|
}
|
||||||
|
|
||||||
eventsHelper.getEvents(minFetchedSearchTS, maxFetchedSearchTS, searchQuery = text) { events ->
|
eventsHelper.getEvents(minFetchedSearchTS, maxFetchedSearchTS, searchQuery = text) { events ->
|
||||||
|
Reference in New Issue
Block a user