Merge "Fix shade collapse on keyguard with bypass enabled" into tm-qpr-dev-plus-aosp
This commit is contained in:
committed by
Android (Google) Code Review
commit
a26c3d99a0
@@ -397,7 +397,7 @@ public abstract class PanelViewController {
|
|||||||
mInitialOffsetOnTouch = expandedHeight;
|
mInitialOffsetOnTouch = expandedHeight;
|
||||||
mInitialExpandY = newY;
|
mInitialExpandY = newY;
|
||||||
mInitialExpandX = newX;
|
mInitialExpandX = newX;
|
||||||
mInitialTouchFromKeyguard = mStatusBarStateController.getState() == StatusBarState.KEYGUARD;
|
mInitialTouchFromKeyguard = mKeyguardStateController.isShowing();
|
||||||
if (startTracking) {
|
if (startTracking) {
|
||||||
mTouchSlopExceeded = true;
|
mTouchSlopExceeded = true;
|
||||||
setExpandedHeight(mInitialOffsetOnTouch);
|
setExpandedHeight(mInitialOffsetOnTouch);
|
||||||
@@ -416,9 +416,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