Adjust if-block for clarity.

This commit is contained in:
Phillip Hsu
2017-03-01 16:17:17 -08:00
parent 997cf25276
commit 05d96ca48e
@@ -59,8 +59,7 @@ public class UpcomingAlarmReceiver extends BroadcastReceiver {
if (ACTION_CANCEL_NOTIFICATION.equals(intent.getAction())) {
nm.cancel(TAG, (int) id);
} else {
if (ACTION_DISMISS_NOW.equals(intent.getAction())) {
} else if (ACTION_DISMISS_NOW.equals(intent.getAction())) {
new AlarmController(context, null).cancelAlarm(alarm, false, true);
} else {
// Prepare notification
@@ -99,5 +98,4 @@ public class UpcomingAlarmReceiver extends BroadcastReceiver {
nm.notify(TAG, (int) id, note);
}
}
}
}