Merge "Fixed a bug where the indication text could get too high" into lmp-mr1-dev
This commit is contained in:
@@ -68,7 +68,6 @@ public abstract class PanelView extends FrameLayout {
|
|||||||
protected int mTouchSlop;
|
protected int mTouchSlop;
|
||||||
protected boolean mHintAnimationRunning;
|
protected boolean mHintAnimationRunning;
|
||||||
private boolean mOverExpandedBeforeFling;
|
private boolean mOverExpandedBeforeFling;
|
||||||
private float mOriginalIndicationY;
|
|
||||||
private boolean mTouchAboveFalsingThreshold;
|
private boolean mTouchAboveFalsingThreshold;
|
||||||
private int mUnlockFalsingThreshold;
|
private int mUnlockFalsingThreshold;
|
||||||
|
|
||||||
@@ -841,16 +840,15 @@ public abstract class PanelView extends FrameLayout {
|
|||||||
});
|
});
|
||||||
animator.start();
|
animator.start();
|
||||||
mHeightAnimator = animator;
|
mHeightAnimator = animator;
|
||||||
mOriginalIndicationY = mKeyguardBottomArea.getIndicationView().getY();
|
|
||||||
mKeyguardBottomArea.getIndicationView().animate()
|
mKeyguardBottomArea.getIndicationView().animate()
|
||||||
.y(mOriginalIndicationY - mHintDistance)
|
.translationY(-mHintDistance)
|
||||||
.setDuration(250)
|
.setDuration(250)
|
||||||
.setInterpolator(mFastOutSlowInInterpolator)
|
.setInterpolator(mFastOutSlowInInterpolator)
|
||||||
.withEndAction(new Runnable() {
|
.withEndAction(new Runnable() {
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
mKeyguardBottomArea.getIndicationView().animate()
|
mKeyguardBottomArea.getIndicationView().animate()
|
||||||
.y(mOriginalIndicationY)
|
.translationY(0)
|
||||||
.setDuration(450)
|
.setDuration(450)
|
||||||
.setInterpolator(mBounceInterpolator)
|
.setInterpolator(mBounceInterpolator)
|
||||||
.start();
|
.start();
|
||||||
|
|||||||
Reference in New Issue
Block a user