diff options
author | Teng-Hui Zhu <ztenghui@google.com> | 2012-10-26 15:26:36 -0700 |
---|---|---|
committer | Teng-Hui Zhu <ztenghui@google.com> | 2012-10-30 11:30:05 -0700 |
commit | bbcb023e46e4cfc905182a753a74baa43e12b076 (patch) | |
tree | 4cec55f27058867fbc546bfad100268b5429129a | |
parent | ddb06d2f9df30e6ee966a4741781ff7ea6872568 (diff) | |
download | android_packages_apps_Snap-bbcb023e46e4cfc905182a753a74baa43e12b076.tar.gz android_packages_apps_Snap-bbcb023e46e4cfc905182a753a74baa43e12b076.tar.bz2 android_packages_apps_Snap-bbcb023e46e4cfc905182a753a74baa43e12b076.zip |
Gallery: Do not set the background to null for video.
This will fix screen corruption when exit while video complete or rotate while
video playing.
bug:7405595
Change-Id: I8b559390a284e5c850bc02a76add86c4de600144
-rw-r--r-- | src/com/android/gallery3d/app/MoviePlayer.java | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/src/com/android/gallery3d/app/MoviePlayer.java b/src/com/android/gallery3d/app/MoviePlayer.java index 9d229f088..00e4cd63b 100644 --- a/src/com/android/gallery3d/app/MoviePlayer.java +++ b/src/com/android/gallery3d/app/MoviePlayer.java @@ -104,14 +104,6 @@ public class MoviePlayer implements } }; - private final Runnable mRemoveBackground = new Runnable() { - @SuppressWarnings("deprecation") - @Override - public void run() { - mRootView.setBackgroundDrawable(null); - } - }; - private final Runnable mProgressChecker = new Runnable() { @Override public void run() { @@ -199,19 +191,6 @@ public class MoviePlayer implements if ((diff & View.SYSTEM_UI_FLAG_HIDE_NAVIGATION) != 0 && (visibility & View.SYSTEM_UI_FLAG_HIDE_NAVIGATION) == 0) { mController.show(); - - // We need to set the background to clear ghosting images - // when ActionBar slides in. However, if we keep the background, - // there will be one additional layer in HW composer, which is bad - // to battery. As a solution, we remove the background when we - // hide the action bar - mHandler.removeCallbacks(mRemoveBackground); - mRootView.setBackgroundColor(Color.BLACK); - } else { - mHandler.removeCallbacks(mRemoveBackground); - - // Wait for the slide out animation, one second should be enough - mHandler.postDelayed(mRemoveBackground, 1000); } } }); |