Merge "Fix shade collapse on keyguard with bypass enabled" into tm-d1-dev am: d1d5f8dad4
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19675492 Change-Id: I0500bd02dbeb7ddae85002fddf0880bfa2366c23 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -395,7 +395,7 @@ public abstract class PanelViewController {
|
|||||||
mInitialOffsetOnTouch = expandedHeight;
|
mInitialOffsetOnTouch = expandedHeight;
|
||||||
mInitialTouchY = newY;
|
mInitialTouchY = newY;
|
||||||
mInitialTouchX = newX;
|
mInitialTouchX = newX;
|
||||||
mInitialTouchFromKeyguard = mStatusBarStateController.getState() == StatusBarState.KEYGUARD;
|
mInitialTouchFromKeyguard = mKeyguardStateController.isShowing();
|
||||||
if (startTracking) {
|
if (startTracking) {
|
||||||
mTouchSlopExceeded = true;
|
mTouchSlopExceeded = true;
|
||||||
setExpandedHeight(mInitialOffsetOnTouch);
|
setExpandedHeight(mInitialOffsetOnTouch);
|
||||||
@@ -414,9 +414,7 @@ public abstract class PanelViewController {
|
|||||||
float vectorVel = (float) Math.hypot(
|
float vectorVel = (float) Math.hypot(
|
||||||
mVelocityTracker.getXVelocity(), mVelocityTracker.getYVelocity());
|
mVelocityTracker.getXVelocity(), mVelocityTracker.getYVelocity());
|
||||||
|
|
||||||
final boolean onKeyguard =
|
final boolean onKeyguard = mKeyguardStateController.isShowing();
|
||||||
mStatusBarStateController.getState() == StatusBarState.KEYGUARD;
|
|
||||||
|
|
||||||
final boolean expand;
|
final boolean expand;
|
||||||
if (mKeyguardStateController.isKeyguardFadingAway()
|
if (mKeyguardStateController.isKeyguardFadingAway()
|
||||||
|| (mInitialTouchFromKeyguard && !onKeyguard)) {
|
|| (mInitialTouchFromKeyguard && !onKeyguard)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user