From 91a8e7eb92bd5f0545b96242155c0694a1002eba Mon Sep 17 00:00:00 2001 From: Aleksandras Kostarevas Date: Fri, 15 Mar 2024 09:58:54 -0500 Subject: [PATCH] Shorten update check interval to 12 hours instead of 48 --- java/src/org/futo/inputmethod/updates/UpdateChecking.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java/src/org/futo/inputmethod/updates/UpdateChecking.kt b/java/src/org/futo/inputmethod/updates/UpdateChecking.kt index 95bc27720..6492ea7e9 100644 --- a/java/src/org/futo/inputmethod/updates/UpdateChecking.kt +++ b/java/src/org/futo/inputmethod/updates/UpdateChecking.kt @@ -92,7 +92,7 @@ fun scheduleUpdateCheckingJob(context: Context) { } var jobInfoBuilder = JobInfo.Builder(JOB_ID, ComponentName(context, UpdateCheckingService::class.java)) - .setPeriodic(1000 * 60 * 60 * 24 * 2) // every two days + .setPeriodic(1000L * 60L * 60L * 12L) // every 12 hours .setRequiredNetworkType(JobInfo.NETWORK_TYPE_UNMETERED) // on unmetered Wi-Fi .setPersisted(true) // persist after reboots