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

Commit 049ae754 authored by Peter Fares's avatar Peter Fares
Browse files

Changed notification power widget sound+vib -> vib to set vibrate always

Change-Id: Ic9ff7da0ffe1fc1c54366155d56239262799c6c6
parent 2a9cbc29
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -76,7 +76,7 @@ public class SoundButton extends PowerButton {
                    Settings.System.putInt(context.getContentResolver(),
                            Settings.System.VIBRATE_IN_SILENT, 1);
                    AUDIO_MANAGER.setVibrateSetting(AudioManager.VIBRATE_TYPE_RINGER,
                            AudioManager.VIBRATE_SETTING_ONLY_SILENT);
                            AudioManager.VIBRATE_SETTING_ON);
                    AUDIO_MANAGER.setRingerMode(AudioManager.RINGER_MODE_VIBRATE);
                    VIBRATOR.vibrate(VIBRATE_DURATION);
                } else if (supports(RINGER_MODE_SILENT)) {
@@ -214,6 +214,7 @@ public class SoundButton extends PowerButton {
    }

    private boolean supports(int ringerMode) {
        // returns true if ringerMode is one of the modes in the selected sound option for the power widget
        int currentMode = getCurrentCMMode(mView.getContext());

        switch (ringerMode) {