Merge "Prevent flings after motion gestures on fully expanded keyguard take 2" into tm-qpr-dev
This commit is contained in:
@@ -3556,7 +3556,13 @@ public final class NotificationPanelViewController implements Dumpable {
|
|||||||
: (mKeyguardStateController.canDismissLockScreen()
|
: (mKeyguardStateController.canDismissLockScreen()
|
||||||
? UNLOCK : BOUNCER_UNLOCK);
|
? UNLOCK : BOUNCER_UNLOCK);
|
||||||
|
|
||||||
fling(vel, expand, isFalseTouch(x, y, interactionType));
|
// don't fling while in keyguard to avoid jump in shade expand animation;
|
||||||
|
// touch has been intercepted already so flinging here is redundant
|
||||||
|
if (mBarState == KEYGUARD && mExpandedFraction >= 1.0) {
|
||||||
|
mShadeLog.d("NPVC endMotionEvent - skipping fling on keyguard");
|
||||||
|
} else {
|
||||||
|
fling(vel, expand, isFalseTouch(x, y, interactionType));
|
||||||
|
}
|
||||||
onTrackingStopped(expand);
|
onTrackingStopped(expand);
|
||||||
mUpdateFlingOnLayout = expand && mPanelClosedOnDown && !mHasLayoutedSinceDown;
|
mUpdateFlingOnLayout = expand && mPanelClosedOnDown && !mHasLayoutedSinceDown;
|
||||||
if (mUpdateFlingOnLayout) {
|
if (mUpdateFlingOnLayout) {
|
||||||
|
|||||||
Reference in New Issue
Block a user