summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTeng-Hui Zhu <ztenghui@google.com>2012-10-30 11:33:47 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-10-30 11:33:48 -0700
commit9062c85907bb49a30dd7554506a607b7405c4a35 (patch)
tree6bdfa230040910c4624da3b2b0e9a411918b00ec /src
parent59e1fc0f37be14fa8290a5be734dc5819a7e6484 (diff)
parentbbcb023e46e4cfc905182a753a74baa43e12b076 (diff)
downloadandroid_packages_apps_Snap-9062c85907bb49a30dd7554506a607b7405c4a35.tar.gz
android_packages_apps_Snap-9062c85907bb49a30dd7554506a607b7405c4a35.tar.bz2
android_packages_apps_Snap-9062c85907bb49a30dd7554506a607b7405c4a35.zip
Merge "Gallery: Do not set the background to null for video." into gb-ub-photos-bryce
Diffstat (limited to 'src')
-rw-r--r--src/com/android/gallery3d/app/MoviePlayer.java21
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);
}
}
});