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

Commit 684ecbab authored by Dan Sandler's avatar Dan Sandler Committed by Daniel Sandler
Browse files

Opt tuner settings activity out of edge-to-edge.

Still fun for some, but not for all: this screen is no
longer accessible by end users but is useful in OS
development.

(This quick fix does, however, fix a similar bug in the Demo
Mode activity.)

Fixes: 371216803
Fixes: 341039611
Flag: EXEMPT bugfix in legacy code
Test: adb root \
    && adb shell pm enable com.android.systemui/.tuner.TunerActivity \
    && adb shell am start -n com.android.systemui/.tuner/TunerActivity
Change-Id: Ibb6984ab4b44e12956c5c60b9903b73d12e1cd26
parent e03a73f7
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -676,10 +676,12 @@

    <style name="TunerSettings" parent="@android:style/Theme.DeviceDefault.Settings">
        <item name="android:windowActionBar">false</item>
        <item name="android:windowOptOutEdgeToEdgeEnforcement">true</item>
        <item name="preferenceTheme">@style/TunerPreferenceTheme</item>
    </style>

    <style name="TunerPreferenceTheme" parent="@style/PreferenceThemeOverlay.SettingsBase">
        <item name="android:windowOptOutEdgeToEdgeEnforcement">true</item>
    </style>

    <style name="TextAppearance.NotificationInfo.Confirmation">
+0 −1
Original line number Diff line number Diff line
@@ -61,7 +61,6 @@ public class TunerActivity extends Activity implements

    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setTheme(androidx.appcompat.R.style.Theme_AppCompat_DayNight);

        getWindow().addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS);
        requestWindowFeature(Window.FEATURE_NO_TITLE);