mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Shorten update check interval to 12 hours instead of 48
This commit is contained in:
parent
e7955166d2
commit
91a8e7eb92
@ -92,7 +92,7 @@ fun scheduleUpdateCheckingJob(context: Context) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var jobInfoBuilder = JobInfo.Builder(JOB_ID, ComponentName(context, UpdateCheckingService::class.java))
|
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
|
.setRequiredNetworkType(JobInfo.NETWORK_TYPE_UNMETERED) // on unmetered Wi-Fi
|
||||||
.setPersisted(true) // persist after reboots
|
.setPersisted(true) // persist after reboots
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user