summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorOwen Lin <owenlin@google.com>2010-11-09 19:32:30 +0800
committerOwen Lin <owenlin@google.com>2010-11-09 19:32:30 +0800
commita8381dfc5ee60dcf99dfd16a840f746cd7cb42ab (patch)
tree10b951843054040726384d02f35c0a103f509038 /core
parentf6bd761f9407a35cc1c4a4b9e199e6a0dc8e4943 (diff)
downloadframeworks_base-a8381dfc5ee60dcf99dfd16a840f746cd7cb42ab.zip
frameworks_base-a8381dfc5ee60dcf99dfd16a840f746cd7cb42ab.tar.gz
frameworks_base-a8381dfc5ee60dcf99dfd16a840f746cd7cb42ab.tar.bz2
Make sure the controller will get repositioned after size changing.
Bug: 3177061 Change-Id: I8f9606d4e05146ba568e8fe370cfe115dadedab9
Diffstat (limited to 'core')
-rw-r--r--core/java/android/widget/VideoView.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/core/java/android/widget/VideoView.java b/core/java/android/widget/VideoView.java
index 531d9fe..b169c93 100644
--- a/core/java/android/widget/VideoView.java
+++ b/core/java/android/widget/VideoView.java
@@ -27,7 +27,6 @@ import android.media.Metadata;
import android.media.MediaPlayer.OnCompletionListener;
import android.media.MediaPlayer.OnErrorListener;
import android.net.Uri;
-import android.os.PowerManager;
import android.util.AttributeSet;
import android.util.Log;
import android.view.KeyEvent;
@@ -35,7 +34,7 @@ import android.view.MotionEvent;
import android.view.SurfaceHolder;
import android.view.SurfaceView;
import android.view.View;
-import android.widget.MediaController.*;
+import android.widget.MediaController.MediaPlayerControl;
import java.io.IOException;
import java.util.Map;
@@ -462,6 +461,10 @@ public class VideoView extends SurfaceView implements MediaPlayerControl {
}
start();
if (mMediaController != null) {
+ if (mMediaController.isShowing()) {
+ // ensure the controller will get repositioned later
+ mMediaController.hide();
+ }
mMediaController.show();
}
}