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

Commit f926c456 authored by Ido Ben-Hur's avatar Ido Ben-Hur Committed by Bruno Martins
Browse files

base: Allow disabling turbulence noise after clicking the play button



Having the turbulence noise play causes frame drops on mid to lower-end devices.
To work around this, allow disabling it through an overlay.

[basamaryan: Only disable the turbulence noise and kill the toggle]

Change-Id: If03f9ce6e4cb11805ef1edd484702367859933fe
Signed-off-by: default avatarbasamaryan <basam.aryan@gmail.com>
parent 3eb3aedf
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -23,4 +23,7 @@

    <!-- Whether usage of the proximity sensor during doze is supported -->
    <bool name="doze_proximity_sensor_supported">true</bool>

    <!-- Whether to play turbulence noise after clicking the play button -->
    <bool name="config_turbulenceNoise">true</bool>
</resources>
+4 −1
Original line number Diff line number Diff line
@@ -577,7 +577,10 @@ public class MediaControlPanel {
            mMediaViewController.refreshState();
        }

        if (shouldPlayTurbulenceNoise()) {
        final boolean isTurbulenceNoiseEnabled = mContext.getResources().getBoolean(
                R.bool.config_turbulenceNoise);

        if (isTurbulenceNoiseEnabled && shouldPlayTurbulenceNoise()) {
            // Need to create the config here to get the correct view size and color.
            if (mTurbulenceNoiseAnimationConfig == null) {
                mTurbulenceNoiseAnimationConfig =