Adjust if-block for clarity.
This commit is contained in:
parent
997cf25276
commit
05d96ca48e
@ -59,8 +59,7 @@ public class UpcomingAlarmReceiver extends BroadcastReceiver {
|
|||||||
|
|
||||||
if (ACTION_CANCEL_NOTIFICATION.equals(intent.getAction())) {
|
if (ACTION_CANCEL_NOTIFICATION.equals(intent.getAction())) {
|
||||||
nm.cancel(TAG, (int) id);
|
nm.cancel(TAG, (int) id);
|
||||||
} else {
|
} else if (ACTION_DISMISS_NOW.equals(intent.getAction())) {
|
||||||
if (ACTION_DISMISS_NOW.equals(intent.getAction())) {
|
|
||||||
new AlarmController(context, null).cancelAlarm(alarm, false, true);
|
new AlarmController(context, null).cancelAlarm(alarm, false, true);
|
||||||
} else {
|
} else {
|
||||||
// Prepare notification
|
// Prepare notification
|
||||||
@ -100,4 +99,3 @@ public class UpcomingAlarmReceiver extends BroadcastReceiver {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user