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

Commit 7ec0bb65 authored by Isaac Katzenelson's avatar Isaac Katzenelson
Browse files

Make sure TimerReceiver gets intents on time

Bug: 11122055
Change-Id: I6c061646a8f111c0e67ee9b296b4149965a9634d
parent 690f451a
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1005,6 +1005,8 @@ public class TimerFragment extends DeskClockFragment
        Intent i = new Intent();
        i.setAction(action);
        i.putExtra(Timers.TIMER_INTENT_EXTRA, t.mTimerId);
        // Make sure the receiver is getting the intent ASAP.
        i.addFlags(Intent.FLAG_RECEIVER_FOREGROUND);
        getActivity().sendBroadcast(i);
    }