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

Commit cb8f1881 authored by Bryce Lee's avatar Bryce Lee
Browse files

Only enable theater mode by button press after setup.

Bug: 21751167
Change-Id: I7f69ff767aaea97829e8eb6f5f13faace1aae416
parent d717682d
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -1005,6 +1005,11 @@ public class PhoneWindowManager implements WindowManagerPolicy {
            case MULTI_PRESS_POWER_NOTHING:
                break;
            case MULTI_PRESS_POWER_THEATER_MODE:
                if (!isUserSetupComplete()) {
                    Slog.i(TAG, "Ignoring toggling theater mode - device not setup.");
                    break;
                }

                if (isTheaterModeEnabled()) {
                    Slog.i(TAG, "Toggling theater mode off.");
                    Settings.Global.putInt(mContext.getContentResolver(),