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

Commit 93f177fc authored by Matt Casey's avatar Matt Casey Committed by Automerger Merge Worker
Browse files

Merge "Show global actions instead of assistant for LPP in setup wizard" into...

Merge "Show global actions instead of assistant for LPP in setup wizard" into sc-dev am: 0b9d47dd am: 1a943139

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14947557

Change-Id: Iade8fad0b6f18aa13e4336f3c5436d2380f2e80f
parents 3dc6a787 1a943139
Loading
Loading
Loading
Loading
+7 −0
Original line number Original line Diff line number Diff line
@@ -1181,6 +1181,13 @@ public class PhoneWindowManager implements WindowManagerPolicy {
        if (FactoryTest.isLongPressOnPowerOffEnabled()) {
        if (FactoryTest.isLongPressOnPowerOffEnabled()) {
            return LONG_PRESS_POWER_SHUT_OFF_NO_CONFIRM;
            return LONG_PRESS_POWER_SHUT_OFF_NO_CONFIRM;
        }
        }

        // If the config indicates the assistant behavior but the device isn't yet provisioned, show
        // global actions instead.
        if (mLongPressOnPowerBehavior == LONG_PRESS_POWER_ASSISTANT && !isDeviceProvisioned()) {
            return LONG_PRESS_POWER_GLOBAL_ACTIONS;
        }

        return mLongPressOnPowerBehavior;
        return mLongPressOnPowerBehavior;
    }
    }