Decrease app update checking interval

pull/1/head
Koitharu 6 years ago
parent fddc3e41cf
commit 127978d3d7

@ -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)
}
}

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

Loading…
Cancel
Save