diff options
Diffstat (limited to 'src/com/android')
| -rw-r--r-- | src/com/android/gallery3d/app/MovieControllerOverlay.java | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/com/android/gallery3d/app/MovieControllerOverlay.java b/src/com/android/gallery3d/app/MovieControllerOverlay.java index 168cbe102..de68a4579 100644 --- a/src/com/android/gallery3d/app/MovieControllerOverlay.java +++ b/src/com/android/gallery3d/app/MovieControllerOverlay.java @@ -559,7 +559,11 @@ public class MovieControllerOverlay extends CommonControllerOverlay implements mAlwaysShowBottom = alwaysShow; if (!alwaysShow) { // clear background setBackgroundDrawable(null); - setBackgroundColor(Color.TRANSPARENT); + if (mState == State.PAUSED || mState == State.PLAYING) { + setBackgroundColor(Color.TRANSPARENT); + }else { + setBackgroundColor(Color.BLACK); + } } else { setBackgroundResource(R.drawable.media_default_bkg); if (foreShow) { @@ -875,8 +879,13 @@ public class MovieControllerOverlay extends CommonControllerOverlay implements } public void onShow() { - Log.v(TAG, "ControllerRewindAndForwardExt onShow"); + Log.v(TAG, "ControllerRewindAndForwardExt onShow: "+mState); mContollerButtons.setVisibility(View.VISIBLE); + if (mState == State.PAUSED || mState == State.PLAYING) { + setBackgroundColor(Color.TRANSPARENT); + } else { + setBackgroundColor(Color.BLACK); + } } public void onLayout(int l, int r, int b) { |
