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

Commit a93f46e6 authored by wjiang's avatar wjiang Committed by Brint E. Kriebel
Browse files

DeskClock: Sometimes alarm can't stop while coming a MT voice call

Alarm can't stop sometimes.
Add stopCurrentAlarm() in PhoneStateListener to stop Alarm when receive a call.

Change-Id: Ie9dadb5f050ec066e7c3e0156bdf8f40f398e9c7
CRs-Fixed: 620428
parent 3af53ebb
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -95,6 +95,7 @@ public class AlarmService extends Service {
            if (state != TelephonyManager.CALL_STATE_IDLE && state != mInitialCallState) {
                sendBroadcast(AlarmStateManager.createStateChangeIntent(AlarmService.this,
                        "AlarmService", mCurrentAlarm, AlarmInstance.MISSED_STATE));
                stopCurrentAlarm();
            }
        }
    };