Setting foreground extensions check to 6 hours

This commit is contained in:
Jay 2020-04-13 01:07:23 -04:00
parent 8d88d1a739
commit 2ce8f544f3

View File

@ -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 {