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

Commit 0dac9bf8 authored by codeworkx's avatar codeworkx Committed by Gerrit Code Review
Browse files

Merge "implement noise suppression for phone calls (1/2)" into ics

parents fdb427ef 6de3427d
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -1911,6 +1911,13 @@ public final class Settings {
         */
        public static final String TTY_MODE = "tty_mode";

        /**
         * Whether noise suppression is enabled. The value is
         * boolean (1 or 0).
         * @hide
         */
        public static final String NOISE_SUPPRESSION = "noise_suppression";

        /**
         * Whether the sounds effects (key clicks, lid open ...) are enabled. The value is
         * boolean (1 or 0).
@@ -2618,6 +2625,7 @@ public final class Settings {
            CALL_AUTO_RETRY,
            HEARING_AID,
            TTY_MODE,
            NOISE_SUPPRESSION,
            SOUND_EFFECTS_ENABLED,
            HAPTIC_FEEDBACK_ENABLED,
            POWER_SOUNDS_ENABLED,
+3 −0
Original line number Diff line number Diff line
@@ -1356,6 +1356,9 @@ public class DatabaseHelper extends SQLiteOpenHelper {
            // Set default tty mode
            loadSetting(stmt, Settings.System.TTY_MODE, 0);

            // Set default noise suppression value
            loadSetting(stmt, Settings.System.NOISE_SUPPRESSION, 0);
    
            loadBooleanSetting(stmt, Settings.System.AIRPLANE_MODE_ON,
                    R.bool.def_airplane_mode_on);