am 2985dd76: Merge "Fixed a bug where the indication text could get too high" into lmp-mr1-dev

* commit '2985dd763b21c63f54ef3d5f26cae249480ea05a':
  Fixed a bug where the indication text could get too high
This commit is contained in:
Selim Cinek
2014-10-24 15:03:06 +00:00
committed by Android Git Automerger

View File

@@ -68,7 +68,6 @@ public abstract class PanelView extends FrameLayout {
protected int mTouchSlop;
protected boolean mHintAnimationRunning;
private boolean mOverExpandedBeforeFling;
private float mOriginalIndicationY;
private boolean mTouchAboveFalsingThreshold;
private int mUnlockFalsingThreshold;
@@ -841,16 +840,15 @@ public abstract class PanelView extends FrameLayout {
});
animator.start();
mHeightAnimator = animator;
mOriginalIndicationY = mKeyguardBottomArea.getIndicationView().getY();
mKeyguardBottomArea.getIndicationView().animate()
.y(mOriginalIndicationY - mHintDistance)
.translationY(-mHintDistance)
.setDuration(250)
.setInterpolator(mFastOutSlowInInterpolator)
.withEndAction(new Runnable() {
@Override
public void run() {
mKeyguardBottomArea.getIndicationView().animate()
.y(mOriginalIndicationY)
.translationY(0)
.setDuration(450)
.setInterpolator(mBounceInterpolator)
.start();