Commit 75639706 authored by leichao.gao's avatar leichao.gao

空指针优化

parent c03f07f5
......@@ -223,9 +223,9 @@ object NotificationUtil {
handler = Handler(handlerThread!!.looper)
for (i in 1..num) {
val time = i * delay
handler!!.postDelayed(Runnable {
handler?.postDelayed(Runnable {
if (MyApplication.PAUSED_VALUE === 1) {
handler!!.removeCallbacksAndMessages(null)
handler?.removeCallbacksAndMessages(null)
return@Runnable
}
if (MyApplication.PAUSED_VALUE !== 1) {
......
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