Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 50733f22 authored by Budi Kusmiantoro's avatar Budi Kusmiantoro
Browse files

Firing Timer should use foreground broadcast

Bug: 17695520

We did a similar fix in the past for b/11122055.

Change-Id: If3c561cad240a156c94410826223664e24f007c7
parent 8781a3f4
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -217,6 +217,8 @@ public class TimerReceiver extends BroadcastReceiver {
        Intent intent = new Intent();
        intent.setAction(Timers.TIMES_UP);
        intent.setClass(context, TimerReceiver.class);
        // Time-critical, should be foreground
        intent.addFlags(Intent.FLAG_RECEIVER_FOREGROUND);
        if (!mTimers.isEmpty()) {
            intent.putExtra(Timers.TIMER_INTENT_EXTRA, timerId);
        }