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

Commit 151b2999 authored by Steve Kondik's avatar Steve Kondik Committed by Gerrit Code Review
Browse files

Merge "Notification PowerWidget: Additional SoundMode: Vibrate/Silent" into gingerbread

parents a3c7a843 677abeee
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -24,6 +24,7 @@ public class SoundButton extends PowerButton {
    public static final int CM_MODE_SOUNDVIB_VIB_SILENT = 3;
    public static final int CM_MODE_SOUND_VIB_SILENT = 4;
    public static final int CM_MODE_SOUNDVIB_SOUND_VIB_SILENT = 5;
    public static final int CM_MODE_VIB_SILENT = 6;

    public static final int VIBRATE_DURATION = 500; // 0.5s

@@ -159,14 +160,16 @@ public class SoundButton extends PowerButton {
            case RINGER_MODE_SILENT:
                if (currentMode == CM_MODE_SOUND_SILENT || currentMode == CM_MODE_SOUNDVIB_VIB_SILENT
                        || currentMode == CM_MODE_SOUND_VIB_SILENT
                        || currentMode == CM_MODE_SOUNDVIB_SOUND_VIB_SILENT)
                        || currentMode == CM_MODE_SOUNDVIB_SOUND_VIB_SILENT
                        || currentMode == CM_MODE_VIB_SILENT)
                    return true;
                break;
            case RINGER_MODE_VIBRATE_ONLY:
                if (currentMode == CM_MODE_SOUND_VIB || currentMode == CM_MODE_SOUNDVIB_VIB
                        || currentMode == CM_MODE_SOUNDVIB_VIB_SILENT
                        || currentMode == CM_MODE_SOUND_VIB_SILENT
                        || currentMode == CM_MODE_SOUNDVIB_SOUND_VIB_SILENT)
                        || currentMode == CM_MODE_SOUNDVIB_SOUND_VIB_SILENT
                        || currentMode == CM_MODE_VIB_SILENT)
                    return true;
                break;
            case RINGER_MODE_SOUND_ONLY: