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

Commit af4bfcdb authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix frozen alarm issue" into oc-dev

parents 180f0174 a7d39cff
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -226,11 +226,7 @@ public class AlarmManager {
        @Override
        public void doAlarm(IAlarmCompleteListener alarmManager) {
            mCompletion = alarmManager;
            mHandler.post(this);
        }

        @Override
        public void run() {
            // Remove this listener from the wrapper cache first; the server side
            // already considers it gone
            synchronized (AlarmManager.class) {
@@ -239,6 +235,11 @@ public class AlarmManager {
                }
            }

            mHandler.post(this);
        }

        @Override
        public void run() {
            // Now deliver it to the app
            try {
                mListener.onAlarm();