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

Skip to content
Unverified Commit 8de8bd06 authored by Mao Jinlong's avatar Mao Jinlong Committed by Adrian DC
Browse files

AlarmService : Change stopSelf into stopSelfResult

Change stopSelf into stopSelfResult to avoid stopping alarm which need
to be started.

If stopAlarm is called when there is no alarm being started and then
startAlarm is called after stopAlarm, it is possibe that the started
alarm is stopped by the previous stopAlarm calling as onDestroy will
be called when stopAlarm.

Use stopSelfResult if the startId matches the last start request then
the service will be stopped.

Change-Id: I50482a471b50537c2670cfc8220aef29c5214a3c
CRs-Fixed: 1101808
parent 1f3d3931
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment