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

Commit 521c0012 authored by Lucas Dupin's avatar Lucas Dupin Committed by android-build-merger
Browse files

Merge "Revert LockIcon click behavior" into qt-dev am: 0ba00953

am: 74259c9f

Change-Id: Ief1216c3c4da9bca7151ee25db7e2e9d5a5e679d
parents bff43509 74259c9f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -198,7 +198,7 @@ public class KeyguardIndicationController implements StateListener,
        if (!mAccessibilityController.isAccessibilityEnabled()) {
            return;
        }
        mShadeController.showBouncer(false /* scrimmed */);
        mShadeController.animateCollapsePanels(CommandQueue.FLAG_EXCLUDE_NONE, true /* force */);
    }

    /**
+6 −0
Original line number Diff line number Diff line
@@ -42,6 +42,12 @@ public interface ShadeController {
     */
    void instantExpandNotificationsPanel();

    /**
     * Collapse the shade animated, showing the bouncer when on {@link StatusBarState#KEYGUARD} or
     * dismissing {@link StatusBar} when on {@link StatusBarState#SHADE}.
     */
    void animateCollapsePanels(int flags, boolean force);

    /**
     * If the notifications panel is not fully expanded, collapse it animated.
     *
+1 −5
Original line number Diff line number Diff line
@@ -3297,12 +3297,8 @@ public class StatusBar extends SystemUI implements DemoMode,

    @Override
    public void showBouncer(boolean scrimmed) {
        if (!mIsOccluded && !scrimmed && mState == StatusBarState.KEYGUARD) {
            animateCollapsePanels(CommandQueue.FLAG_EXCLUDE_NONE, true /* force */);
        } else {
        mStatusBarKeyguardViewManager.showBouncer(scrimmed);
    }
    }

    @Override
    public void instantExpandNotificationsPanel() {
+1 −1
Original line number Diff line number Diff line
@@ -257,7 +257,7 @@ public class KeyguardIndicationControllerTest extends SysuiTestCase {

        when(mAccessibilityController.isAccessibilityEnabled()).thenReturn(true);
        clickCaptor.getValue().onClick(mLockIcon);
        verify(mShadeController).showBouncer(eq(false));
        verify(mShadeController).animateCollapsePanels(anyInt(), eq(true));

        longClickCaptor.getValue().onLongClick(mLockIcon);
        verify(mLockPatternUtils).requireCredentialEntry(anyInt());