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

Commit 0b9d47dd authored by Matt Casey's avatar Matt Casey Committed by Android (Google) Code Review
Browse files

Merge "Show global actions instead of assistant for LPP in setup wizard" into sc-dev

parents 2828678b 5d85ba60
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -1181,6 +1181,13 @@ public class PhoneWindowManager implements WindowManagerPolicy {
        if (FactoryTest.isLongPressOnPowerOffEnabled()) {
            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;
    }