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

Commit b50a72f1 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Provide isLocked to wallet instead of isUnlocked" into rvc-dev am: c9ffc840

Change-Id: Iaa951932160ff3b870ba540e613085abee87248b
parents 022a8216 c9ffc840
Loading
Loading
Loading
Loading
+3 −6
Original line number Diff line number Diff line
@@ -360,10 +360,9 @@ public class GlobalActionsDialog implements DialogInterface.OnDismissListener,
            @Override
            public void onUnlockedChanged() {
                if (mDialog != null) {
                    boolean unlocked = keyguardStateController.isUnlocked()
                            || keyguardStateController.canDismissLockScreen();
                    if (mDialog.mPanelController != null) {
                        mDialog.mPanelController.onDeviceLockStateChanged(unlocked);
                        mDialog.mPanelController.onDeviceLockStateChanged(
                                !mKeyguardStateController.isUnlocked());
                    }
                    if (!mDialog.isShowingControls() && shouldShowControls()) {
                        mDialog.showControls(mControlsUiController);
@@ -2378,9 +2377,7 @@ public class GlobalActionsDialog implements DialogInterface.OnDismissListener,

    @VisibleForTesting
    protected boolean shouldShowControls() {
        boolean isUnlocked = mKeyguardStateController.isUnlocked()
                || mKeyguardStateController.canDismissLockScreen();
        return (isUnlocked || mShowLockScreenCardsAndControls)
        return (mKeyguardStateController.isUnlocked() || mShowLockScreenCardsAndControls)
                && mControlsUiController.getAvailable()
                && !mControlsServiceInfos.isEmpty()
                && mDeviceProvisioned;