Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
LatinIME
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
keyboard
LatinIME
Commits
91a8e7eb
Commit
91a8e7eb
authored
1 year ago
by
Aleksandras Kostarevas
Browse files
Options
Downloads
Patches
Plain Diff
Shorten update check interval to 12 hours instead of 48
parent
e7955166
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!7
Merge model-metadata to master
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
java/src/org/futo/inputmethod/updates/UpdateChecking.kt
+1
-1
1 addition, 1 deletion
java/src/org/futo/inputmethod/updates/UpdateChecking.kt
with
1 addition
and
1 deletion
java/src/org/futo/inputmethod/updates/UpdateChecking.kt
+
1
−
1
View file @
91a8e7eb
...
@@ -92,7 +92,7 @@ fun scheduleUpdateCheckingJob(context: Context) {
...
@@ -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 day
s
.
setPeriodic
(
1000
L
*
60
L
*
60
L
*
12L
)
// every
12 hour
s
.
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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment