diff options
author | d34d <clark@cyngn.com> | 2016-05-17 15:48:32 -0700 |
---|---|---|
committer | Gerrit Code Review <gerrit@cyanogenmod.org> | 2016-05-18 14:38:58 -0700 |
commit | 2da425ef6547df98e2c912fa42f295e83359ffaf (patch) | |
tree | 858befec9b029ebc5da47d56b10c608bca59b21f /packages | |
parent | 2cfbb7a359f8fe549d734693727afa4670876eb7 (diff) | |
download | frameworks_base-2da425ef6547df98e2c912fa42f295e83359ffaf.zip frameworks_base-2da425ef6547df98e2c912fa42f295e83359ffaf.tar.gz frameworks_base-2da425ef6547df98e2c912fa42f295e83359ffaf.tar.bz2 |
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
Diffstat (limited to 'packages')
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java index d8ddd20..561885e 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java @@ -472,7 +472,10 @@ public class NotificationPanelView extends PanelView implements boolean intercept = false; if (mLiveLockscreenController.getLiveLockScreenHasFocus()) { intercept = mAfforanceHelper.onTouchEvent(e); - if (isCancelOrUp) { + // If the touch did not originate on the affordance helper, + // we must collapse the panel here since we can't rely on + // the swipe callbacks from being invoked. + if (isCancelOrUp && !isAffordanceSwipeInProgress()) { mKeyguardBottomArea.expand(false); } if (!intercept) { |