Setting foreground extensions check to 6 hours
This commit is contained in:
parent
8d88d1a739
commit
2ce8f544f3
1 changed files with 1 additions and 1 deletions
|
@ -334,7 +334,7 @@ open class MainActivity : BaseActivity(), DownloadServiceListener {
|
|||
}
|
||||
|
||||
private fun getExtensionUpdates() {
|
||||
if (Date().time >= preferences.lastExtCheck().getOrDefault() + TimeUnit.HOURS.toMillis(1)) {
|
||||
if (Date().time >= preferences.lastExtCheck().getOrDefault() + TimeUnit.HOURS.toMillis(6)) {
|
||||
GlobalScope.launch(Dispatchers.IO) {
|
||||
val preferences: PreferencesHelper by injectLazy()
|
||||
try {
|
||||
|
|
Reference in a new issue