|
|
@ -25,8 +25,7 @@ class TimeBatteryReceiver : BroadcastReceiver() { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
override fun onReceive(context: Context?, intent: Intent?) { |
|
|
|
override fun onReceive(context: Context?, intent: Intent?) { |
|
|
|
intent?.action?.let { |
|
|
|
when (intent?.action) { |
|
|
|
when (it) { |
|
|
|
|
|
|
|
Intent.ACTION_TIME_TICK -> { |
|
|
|
Intent.ACTION_TIME_TICK -> { |
|
|
|
postEvent(EventBus.TIME_CHANGED, "") |
|
|
|
postEvent(EventBus.TIME_CHANGED, "") |
|
|
|
} |
|
|
|
} |
|
|
@ -36,6 +35,5 @@ class TimeBatteryReceiver : BroadcastReceiver() { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |