Skip to content

Commit 2da425e

Browse files
0xD34DGerrit Code Review
authored andcommitted
SysUI: Check swiping progress before collapsing KBA
Collapsing the KeyguardBottomArea while a swipe is in progress causes the window to collapse to a smaller size and cut off the circular animations from the affordance views. Luckliy there is a method we can call to see if we are in such a state, so let's use it. Change-Id: I45241ed17c3c90580fb04845700f5632b34db187 TICKET: CYNGNOS-2824
1 parent 2cfbb7a commit 2da425e

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,10 @@ public boolean onTouch(View v, MotionEvent e) {
472472
boolean intercept = false;
473473
if (mLiveLockscreenController.getLiveLockScreenHasFocus()) {
474474
intercept = mAfforanceHelper.onTouchEvent(e);
475-
if (isCancelOrUp) {
475+
// If the touch did not originate on the affordance helper,
476+
// we must collapse the panel here since we can't rely on
477+
// the swipe callbacks from being invoked.
478+
if (isCancelOrUp && !isAffordanceSwipeInProgress()) {
476479
mKeyguardBottomArea.expand(false);
477480
}
478481
if (!intercept) {

0 commit comments

Comments
 (0)