From 01e365b9af1bf87265ac9466c339d1e4c27966e8 Mon Sep 17 00:00:00 2001 From: Jaewan Kim Date: Tue, 3 May 2016 02:20:11 +0900 Subject: [PATCH] Fix recents row blinking when PIP is focused Bug: 28522204 Change-Id: I916c47a57b30e553f8823ea8d2c3e686fab9e25c --- .../recents/tv/animations/RecentsRowFocusAnimationHolder.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/SystemUI/src/com/android/systemui/recents/tv/animations/RecentsRowFocusAnimationHolder.java b/packages/SystemUI/src/com/android/systemui/recents/tv/animations/RecentsRowFocusAnimationHolder.java index 160835f81bcb8..45c15379485bd 100644 --- a/packages/SystemUI/src/com/android/systemui/recents/tv/animations/RecentsRowFocusAnimationHolder.java +++ b/packages/SystemUI/src/com/android/systemui/recents/tv/animations/RecentsRowFocusAnimationHolder.java @@ -52,7 +52,9 @@ public class RecentsRowFocusAnimationHolder { mFocusLoseAnimatorSet = new AnimatorSet(); mFocusLoseAnimatorSet.playTogether( - ObjectAnimator.ofFloat(mView, "alpha", dimAlpha), + // Animation doesn't start from the current value (1f) sometimes, + // so specify the desired initial value here. + ObjectAnimator.ofFloat(mView, "alpha", 1f, dimAlpha), ObjectAnimator.ofFloat(mTitleView, "alpha", 0f)); mFocusLoseAnimatorSet.setDuration(duration); mFocusLoseAnimatorSet.setInterpolator(Interpolators.FAST_OUT_SLOW_IN);