summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTenghui Zhu <ztenghui@google.com>2012-10-30 15:16:33 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-10-30 15:16:33 -0700
commita3c8cf04c31af4d53bb81d161241c13656847166 (patch)
tree3a7eef66e86d9be1f7c5b90133036681112ecc70
parent556347cb20e871f25560ff37d7c51f66733888f7 (diff)
parent6af05206f0b71f7a09ed7d9f8763535723796d75 (diff)
downloadandroid_packages_apps_Snap-a3c8cf04c31af4d53bb81d161241c13656847166.tar.gz
android_packages_apps_Snap-a3c8cf04c31af4d53bb81d161241c13656847166.tar.bz2
android_packages_apps_Snap-a3c8cf04c31af4d53bb81d161241c13656847166.zip
Merge "DO NOT MERGE: Do not set the background to null for video." into gb-ub-photos-arches
-rw-r--r--src/com/android/gallery3d/app/MoviePlayer.java22
1 files changed, 1 insertions, 21 deletions
diff --git a/src/com/android/gallery3d/app/MoviePlayer.java b/src/com/android/gallery3d/app/MoviePlayer.java
index 9d229f088..85dc4427e 100644
--- a/src/com/android/gallery3d/app/MoviePlayer.java
+++ b/src/com/android/gallery3d/app/MoviePlayer.java
@@ -74,8 +74,8 @@ public class MoviePlayer implements
private static final long RESUMEABLE_TIMEOUT = 3 * 60 * 1000; // 3 mins
private Context mContext;
- private final VideoView mVideoView;
private final View mRootView;
+ private final VideoView mVideoView;
private final Bookmarker mBookmarker;
private final Uri mUri;
private final Handler mHandler = new Handler();
@@ -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,7 @@ 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);
}
}
});