Decrease app update checking interval

This commit is contained in:
Koitharu
2020-03-19 12:53:14 +02:00
parent fddc3e41cf
commit 127978d3d7
2 changed files with 2 additions and 2 deletions

View File

@@ -66,7 +66,7 @@ class MainActivity : BaseActivity(), NavigationView.OnNavigationItemSelectedList
navigationView.setCheckedItem(R.id.nav_history)
setPrimaryFragment(HistoryListFragment.newInstance())
}
drawer.postDelayed(4000) {
drawer.postDelayed(2000) {
AppUpdateService.startIfRequired(applicationContext)
}
}

View File

@@ -90,7 +90,7 @@ class AppUpdateService : BaseService() {
private const val NOTIFICATION_ID = 202
private const val CHANNEL_ID = "update"
private val PERIOD = TimeUnit.HOURS.toMillis(10)
private val PERIOD = TimeUnit.HOURS.toMillis(6)
fun start(context: Context) =
context.startService(Intent(context, AppUpdateService::class.java))