Commit c8bcb08c authored by wanglei's avatar wanglei

...

parent b899403b
...@@ -267,7 +267,9 @@ object NotificationUtil { ...@@ -267,7 +267,9 @@ object NotificationUtil {
val time = i * delay val time = i * delay
handler?.postDelayed(Runnable { handler?.postDelayed(Runnable {
if (MyApplication.PAUSED_VALUE === 1) { if (MyApplication.PAUSED_VALUE === 1) {
handler?.removeCallbacksAndMessages(null) if (handler != null) {
handler?.removeCallbacksAndMessages(null)
}
return@Runnable return@Runnable
} }
if (MyApplication.PAUSED_VALUE !== 1 && ScreenStatusReceiver.isDeviceInteractive() && !ScreenStatusReceiver.isSecureLockActive()) { if (MyApplication.PAUSED_VALUE !== 1 && ScreenStatusReceiver.isDeviceInteractive() && !ScreenStatusReceiver.isSecureLockActive()) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment