Decrease app update checking interval
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user