[Android] VideoPlayerActivity: show the overlay only when the MediaPlayerPlaying event has been triggered.
Adrien Maglo
git at videolan.org
Tue Oct 29 16:51:34 CET 2013
vlc-ports/android | branch: master | Adrien Maglo <magsoft at videolan.org> | Tue Oct 29 16:51:01 2013 +0100| [10ddf8e50a5bc6f79bef461867ee8638a061021f] | committer: Adrien Maglo
VideoPlayerActivity: show the overlay only when the MediaPlayerPlaying event has been triggered.
Fix the wrong seek bar position bug when the activity resumes.
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=10ddf8e50a5bc6f79bef461867ee8638a061021f
---
vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
index 9b1162f..a17bab9 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -434,8 +434,6 @@ public class VideoPlayerActivity extends Activity implements IVideoPlayer {
}
}}, 500);
- showOverlay();
-
// Add any selected subtitle file from the file picker
if(mSubtitleSelectedFiles.size() > 0) {
for(String file : mSubtitleSelectedFiles) {
@@ -667,6 +665,7 @@ public class VideoPlayerActivity extends Activity implements IVideoPlayer {
switch (msg.getData().getInt("event")) {
case EventHandler.MediaPlayerPlaying:
Log.i(TAG, "MediaPlayerPlaying");
+ activity.showOverlay();
activity.setESTracks();
break;
case EventHandler.MediaPlayerPaused:
More information about the Android
mailing list