diff options
author | 2014-08-28 13:37:21 +0000 | |
---|---|---|
committer | 2014-08-28 13:37:23 +0000 | |
commit | 1a08a8f52f263fb8431b54dce89d333660ac3b1f (patch) | |
tree | e56c32d11363ecbef28b6d5bdf64c8f8e0657e73 | |
parent | 05546f455d44752e1901654b3fb67965c4ddcd49 (diff) | |
parent | 0d61b51852278de763d971ae0c57b27e6ed1ce6a (diff) |
Merge "Fixed a flash of the preview image when going to the dialer" into lmp-dev
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/KeyguardAffordanceView.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/KeyguardAffordanceView.java b/packages/SystemUI/src/com/android/systemui/statusbar/KeyguardAffordanceView.java index 4a6bfa106a11..5878ae1b3c3b 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/KeyguardAffordanceView.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/KeyguardAffordanceView.java @@ -163,6 +163,9 @@ public class KeyguardAffordanceView extends ImageView { public void setPreviewView(View v) { mPreviewView = v; + if (mPreviewView != null) { + mPreviewView.setVisibility(INVISIBLE); + } } private void drawArrow(Canvas canvas) { @@ -295,7 +298,7 @@ public class KeyguardAffordanceView extends ImageView { duration = Math.min(duration, CIRCLE_DISAPPEAR_MAX_DURATION); animator.setDuration(duration); animator.start(); - if (mPreviewView != null) { + if (mPreviewView != null && mPreviewView.getVisibility() == View.VISIBLE) { mPreviewView.setVisibility(View.VISIBLE); mPreviewClipper = ViewAnimationUtils.createCircularReveal( mPreviewView, getLeft() + mCenterX, getTop() + mCenterY, mCircleRadius, |