Merge "Fix shade collapse on keyguard with bypass enabled" into tm-qpr-dev
This commit is contained in:
@@ -397,7 +397,7 @@ public abstract class PanelViewController {
|
||||
mInitialOffsetOnTouch = expandedHeight;
|
||||
mInitialExpandY = newY;
|
||||
mInitialExpandX = newX;
|
||||
mInitialTouchFromKeyguard = mStatusBarStateController.getState() == StatusBarState.KEYGUARD;
|
||||
mInitialTouchFromKeyguard = mKeyguardStateController.isShowing();
|
||||
if (startTracking) {
|
||||
mTouchSlopExceeded = true;
|
||||
setExpandedHeight(mInitialOffsetOnTouch);
|
||||
@@ -416,9 +416,7 @@ public abstract class PanelViewController {
|
||||
float vectorVel = (float) Math.hypot(
|
||||
mVelocityTracker.getXVelocity(), mVelocityTracker.getYVelocity());
|
||||
|
||||
final boolean onKeyguard =
|
||||
mStatusBarStateController.getState() == StatusBarState.KEYGUARD;
|
||||
|
||||
final boolean onKeyguard = mKeyguardStateController.isShowing();
|
||||
final boolean expand;
|
||||
if (mKeyguardStateController.isKeyguardFadingAway()
|
||||
|| (mInitialTouchFromKeyguard && !onKeyguard)) {
|
||||
|
||||
Reference in New Issue
Block a user