diff options
author | Jaekyun Seok <jaekyun@google.com> | 2014-05-21 11:59:47 +0900 |
---|---|---|
committer | Jaekyun Seok <jaekyun@google.com> | 2014-05-21 11:59:47 +0900 |
commit | 8d303d9d47172b623a1b1e4152ada5fb713af93c (patch) | |
tree | e8b0184e809f12bd5b5b36eca9e6b224b3fea40b /src/com/android/tv | |
parent | 9419bd5aa79ca40126b949a90c3a4c999361f72d (diff) | |
download | TV-8d303d9d47172b623a1b1e4152ada5fb713af93c.tar.gz |
Keep the target alpha after the animation is finished.
Bug: 15119046
Change-Id: If404bfcf1c8fc894199619ead0e42a659ad7f39b
Diffstat (limited to 'src/com/android/tv')
-rw-r--r-- | src/com/android/tv/TvActivity.java | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/com/android/tv/TvActivity.java b/src/com/android/tv/TvActivity.java index f8e27b39..f9e14394 100644 --- a/src/com/android/tv/TvActivity.java +++ b/src/com/android/tv/TvActivity.java @@ -899,12 +899,20 @@ public class TvActivity extends Activity implements mView.animate() .alpha(1f) .setDuration(mShortAnimationDuration) - .setListener(null); + .setListener(new AnimatorListenerAdapter() { + @Override + public void onAnimationEnd(Animator animation) { + // Currently the target alpha isn't kept, but it was before. + // TODO: Remove this if frameworks keeps the target value again. + mView.setAlpha(1f); + } + }); } // Schedule the hide animation after a few seconds. mHandler.removeCallbacks(this); if (mOnHideAnimation) { mView.clearAnimation(); + mView.setAlpha(1f); mOnHideAnimation = false; } mHandler.postDelayed(this, mWaitingTime); |