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

Commit 360468b9 authored by Chiao Cheng's avatar Chiao Cheng Committed by Isaac Katzenelson
Browse files

Allow power button to dismiss/snooze.

- Adding period to undo bar.

Bug: 7266880, 7298811
Change-Id: I6dde551ec7bc87fd5fcc01ca9632276ee6d07670
parent 8f97a722
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -643,7 +643,7 @@
    <string name="collapse_alarm">Collapse alarm</string>

    <string name="alarm_undo">undo</string>
    <string name="alarm_deleted">Alarm deleted</string>
    <string name="alarm_deleted">Alarm deleted.</string>

</resources>
+1 −2
Original line number Diff line number Diff line
@@ -26,8 +26,6 @@ import android.content.Intent;
import android.content.IntentFilter;
import android.content.res.Configuration;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.preference.PreferenceManager;
import android.view.KeyEvent;
import android.view.LayoutInflater;
@@ -275,6 +273,7 @@ public class AlarmAlertFullScreen extends Activity {
        boolean up = event.getAction() == KeyEvent.ACTION_UP;
        switch (event.getKeyCode()) {
            // Volume keys and camera keys dismiss the alarm
            case KeyEvent.KEYCODE_POWER:
            case KeyEvent.KEYCODE_VOLUME_UP:
            case KeyEvent.KEYCODE_VOLUME_DOWN:
            case KeyEvent.KEYCODE_VOLUME_MUTE: