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

Commit bb0a5bf3 authored by Danny Baumann's avatar Danny Baumann Committed by Ricardo Cerqueira
Browse files

Add an option to allow a (subtle) notification vibration during calls.

Change-Id: I8a5e1d15d17d56089158b24f9a4b246ae6e60285
JIRA:CYAN-1550
parent 26df38b6
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -3156,6 +3156,14 @@ public final class Settings {
         */
        public static final String NOTIFICATION_CONVERT_SOUND_TO_VIBRATION = "convert_sound_to_vibration";

        /**
         * Whether to allow notification vibration while notification alerts are disabled
         * (e.g. during phone calls). The vibration pattern to be used will be a subtle one;
         * custom vibration is disabled at that point.
         * @hide
         */
        public static final String NOTIFICATION_VIBRATE_DURING_ALERTS_DISABLED = "vibrate_while_no_alerts";

        /**
         * Volume key controls ringtone or media sound stream
         *
@@ -3231,6 +3239,7 @@ public final class Settings {
            NOTIFICATION_LIGHT_PULSE_DEFAULT_COLOR,
            NOTIFICATION_LIGHT_PULSE_DEFAULT_LED_ON,
            NOTIFICATION_LIGHT_PULSE_DEFAULT_LED_OFF,
            NOTIFICATION_VIBRATE_DURING_ALERTS_DISABLED,
            SIP_CALL_OPTIONS,
            SIP_RECEIVE_CALLS,
            POINTER_SPEED,
+10 −0
Original line number Diff line number Diff line
@@ -1236,6 +1236,16 @@
        <item>100</item>
    </integer-array>

    <!-- Vibrator pattern to be used as for notifications while alerts
         are disabled (e.g. during phone calls) if enabled by the user.
     -->
    <integer-array name="config_notificationNoAlertsVibePattern">
        <item>0</item>
        <item>50</item>
        <item>100</item>
        <item>50</item>
    </integer-array>

    <!-- Flag indicating if the speed up audio on mt call code should be executed -->
    <bool name="config_speed_up_audio_on_mt_calls">false</bool>

+1 −0
Original line number Diff line number Diff line
@@ -1778,6 +1778,7 @@
  <java-symbol type="bool" name="config_intrusiveBatteryLed" />
  <java-symbol type="bool" name="config_multiColorBatteryLed" />
  <java-symbol type="array" name="notification_light_package_mapping" />
  <java-symbol type="array" name="config_notificationNoAlertsVibePattern" />

  <!-- Power menu -->
  <java-symbol type="string" name="global_action_screenshot" />