equal
deleted
inserted
replaced
9 </actions> |
9 </actions> |
10 </if> |
10 </if> |
11 |
11 |
12 <!-- Snooze alarm when device is turned upside down --> |
12 <!-- Snooze alarm when device is turned upside down --> |
13 <elseIf> |
13 <elseIf> |
14 <contextChanged> |
14 <and> |
15 <contextRef source='Sensor' type='Event.Orientation' value='DisplayDownwards'/> |
15 <!-- Check that turning interaction is set --> |
16 </contextChanged> |
16 <equals> |
|
17 <contextRef source='Sensor' type='Setting.TurningInteraction.SilenceAlarm'/> |
|
18 <string>On</string> |
|
19 </equals> |
|
20 <!-- ...and previous orientation is not 'Undefined' ... --> |
|
21 <notEqual> |
|
22 <contextRef source='Sensor' type='Event.Orientation.Previous'/> |
|
23 <string>Undefined</string> |
|
24 </notEqual> |
|
25 <!-- ...and we receive a new orientation event from sensors... --> |
|
26 <contextChanged> |
|
27 <contextRef source='Sensor' type='Event.Orientation'/> |
|
28 </contextChanged> |
|
29 <equals> |
|
30 <contextRef source='Sensor' type='Event.Orientation'/> |
|
31 <string>DisplayDownwards</string> |
|
32 </equals> |
|
33 </and> |
17 <actions> |
34 <actions> |
18 <!-- snooze the alarm --> |
35 <!-- snooze the alarm --> |
19 <AlarmUI.Snooze/> |
36 <AlarmUI.Snooze/> |
20 </actions> |
37 </actions> |
21 </elseIf> |
38 </elseIf> |