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

Unverified Commit c0019927 authored by Ido Ben-Hur's avatar Ido Ben-Hur Committed by Michael Bestas
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 e07e9a30
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -34,4 +34,7 @@
         Possible values: 3, 3.1, 3.2, 4, 4.1, 4.2
    -->
    <string name="config_screenRecorderAVCProfileLevel" translatable="false">4.2</string>

    <!-- Whether to play turbulence noise after clicking the play button -->
    <bool name="config_turbulenceNoise">true</bool>
</resources>
+2 −1
Original line number Diff line number Diff line
@@ -648,7 +648,8 @@ public class MediaControlPanel {
                        mLoadingEffect::finish,
                        TURBULENCE_NOISE_PLAY_DURATION
                );
            } else {
            } else if (mContext.getResources().getBoolean(
                    com.android.systemui.res.R.bool.config_turbulenceNoise)) {
                mTurbulenceNoiseController.play(
                        Type.SIMPLEX_NOISE,
                        mTurbulenceNoiseAnimationConfig