Commit 4c7eeaf2 authored by Ricki Hirner's avatar Ricki Hirner 🐑

Alarm ACTION: compare only value (ignore parameters)

parent 9e6bc81c
Pipeline #6523554 passed with stage
in 7 minutes and 46 seconds
......@@ -620,11 +620,11 @@ public abstract class AndroidEvent {
final Action action = alarm.getAction();
final int method;
if (action == null || // (required) ACTION not set, assume DISPLAY
Action.DISPLAY.equals(action) || // alarm should be shown on display
Action.AUDIO.equals(action)) // alarm should play some sound
if (action == null || // (required) ACTION not set, assume DISPLAY
Action.DISPLAY.getValue().equals(action.getValue()) || // alarm should be shown on display
Action.AUDIO.getValue().equals(action.getValue())) // alarm should play some sound
method = Reminders.METHOD_ALERT;
else if (Action.EMAIL.equals(action))
else if (Action.EMAIL.getValue().equals(action.getValue()))
method = Reminders.METHOD_EMAIL;
else
method = Reminders.METHOD_DEFAULT;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment