summaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorSelim Cinek <cinek@google.com>2015-07-06 18:39:28 -0700
committerSelim Cinek <cinek@google.com>2015-07-06 18:39:28 -0700
commit158af6a0285409398332c8d84d46fe43959a51f6 (patch)
treeef45f6a338e8c1d0ab6bac1874892dce986a23b8 /packages
parentd06c41c970a4cf3ef23d4633ac2998496da0a0b6 (diff)
downloadframeworks_base-158af6a0285409398332c8d84d46fe43959a51f6.zip
frameworks_base-158af6a0285409398332c8d84d46fe43959a51f6.tar.gz
frameworks_base-158af6a0285409398332c8d84d46fe43959a51f6.tar.bz2
Fixed keyguard affordances
In certain cases, the keyguard affordances could not be launched due to a bug. This was because the targetedView was not properly reset sometimes. Bug: 22013726 Change-Id: I4525dc5adf07f4d023ef8553d3db0b16c8f754c4
Diffstat (limited to 'packages')
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardAffordanceHelper.java21
1 files changed, 2 insertions, 19 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardAffordanceHelper.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardAffordanceHelper.java
index 0877ff9..6670ae0 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardAffordanceHelper.java
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardAffordanceHelper.java
@@ -68,25 +68,11 @@ public class KeyguardAffordanceHelper {
private View mTargetedView;
private boolean mTouchSlopExeeded;
private AnimatorListenerAdapter mFlingEndListener = new AnimatorListenerAdapter() {
- public boolean mCancelled;
-
@Override
public void onAnimationEnd(Animator animation) {
mSwipeAnimator = null;
mSwipingInProgress = false;
- if (!mCancelled) {
- mTargetedView = null;
- }
- }
-
- @Override
- public void onAnimationCancel(Animator animation) {
- mCancelled = true;
- }
-
- @Override
- public void onAnimationStart(Animator animation) {
- mCancelled = false;
+ mTargetedView = null;
}
};
private Runnable mAnimationEndRunnable = new Runnable() {
@@ -290,7 +276,6 @@ public class KeyguardAffordanceHelper {
* Phase 2: Move back.
*/
private void startUnlockHintAnimationPhase2(boolean right, final Runnable onFinishedListener) {
- final KeyguardAffordanceView targetView = right ? mRightIcon : mLeftIcon;
ValueAnimator animator = getAnimatorToRadius(right, 0);
animator.addListener(new AnimatorListenerAdapter() {
@Override
@@ -513,9 +498,7 @@ public class KeyguardAffordanceHelper {
}
public void reset(boolean animate) {
- if (mSwipeAnimator != null) {
- mSwipeAnimator.cancel();
- }
+ cancelAnimation();
setTranslation(0.0f, true, animate);
mMotionCancelled = true;
if (mSwipingInProgress) {