From b7c455bc6a152e065adde564d21fef0c80ff15fe Mon Sep 17 00:00:00 2001 From: tibbi Date: Fri, 13 Jan 2023 11:44:06 +0100 Subject: [PATCH] search for events 1 year to the past or future too --- .../simplemobiletools/calendar/pro/activities/MainActivity.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/calendar/pro/activities/MainActivity.kt b/app/src/main/kotlin/com/simplemobiletools/calendar/pro/activities/MainActivity.kt index 42912f346..e05c9dfd4 100644 --- a/app/src/main/kotlin/com/simplemobiletools/calendar/pro/activities/MainActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/calendar/pro/activities/MainActivity.kt @@ -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 ->