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

Commit 7ff81553 authored by Makoto Onuki's avatar Makoto Onuki Committed by android-build-merger
Browse files

Merge "Fix frozen alarm issue" into oc-dev

am: af4bfcdb

Change-Id: I2d35bfb3f2afec37ba3e26db4ca77df67ed43a7d
parents 043e326a af4bfcdb
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();