diff options
author | Owen Lin <owenlin@google.com> | 2010-11-09 19:32:30 +0800 |
---|---|---|
committer | Owen Lin <owenlin@google.com> | 2010-11-09 19:32:30 +0800 |
commit | a8381dfc5ee60dcf99dfd16a840f746cd7cb42ab (patch) | |
tree | 10b951843054040726384d02f35c0a103f509038 /core | |
parent | f6bd761f9407a35cc1c4a4b9e199e6a0dc8e4943 (diff) | |
download | frameworks_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.java | 7 |
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(); } } |