|
@@ -483,8 +483,6 @@ class MainActivity :BaseActivity<MainActivityPresenter, MainActivityLayoutBindin
|
|
|
receiver = TimeReceiver()
|
|
|
var intentFilter = IntentFilter()
|
|
|
intentFilter.addAction(Intent.ACTION_TIME_TICK)
|
|
|
- intentFilter.addAction(Intent.ACTION_TIMEZONE_CHANGED)
|
|
|
- intentFilter.addAction(Intent.ACTION_TIME_CHANGED)
|
|
|
intentFilter.addAction(ConnectivityManager.CONNECTIVITY_ACTION)
|
|
|
registerReceiver(receiver, intentFilter)
|
|
|
}
|
|
@@ -1325,9 +1323,7 @@ class MainActivity :BaseActivity<MainActivityPresenter, MainActivityLayoutBindin
|
|
|
|
|
|
inner class TimeReceiver: BroadcastReceiver() {
|
|
|
override fun onReceive(context: Context, intent: Intent) {
|
|
|
- if (intent.action == Intent.ACTION_TIME_TICK
|
|
|
- || intent.action == Intent.ACTION_TIME_CHANGED
|
|
|
- || intent.action == Intent.ACTION_TIMEZONE_CHANGED) {
|
|
|
+ if (intent.action == Intent.ACTION_TIME_TICK) {
|
|
|
updateNetState()
|
|
|
if (initialized) {
|
|
|
updateSettings(false)
|