[Android] Fix presentation mode

Geoffrey Métais git at videolan.org
Thu Apr 9 10:48:45 CEST 2015


vlc-ports/android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu Apr  9 10:48:25 2015 +0200| [49e03fa834ef58ff5afdd6e9734a655b7c7f7c7c] | committer: Geoffrey Métais

Fix presentation mode

> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=49e03fa834ef58ff5afdd6e9734a655b7c7f7c7c
---

 .../videolan/vlc/gui/video/VideoPlayerActivity.java |   19 ++++++++++++-------
 1 file changed, 12 insertions(+), 7 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 0527e82..224ff8f 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -1250,7 +1250,8 @@ public class VideoPlayerActivity extends ActionBarActivity implements IVideoPlay
      * @param duration
      */
     private void showInfo(String text, int duration) {
-        mVerticalBar.setVisibility(View.INVISIBLE);
+        if (mPresentation == null)
+            mVerticalBar.setVisibility(View.INVISIBLE);
         mInfo.setVisibility(View.VISIBLE);
         mInfo.setText(text);
         mHandler.removeMessages(FADE_OUT_INFO);
@@ -1258,7 +1259,8 @@ public class VideoPlayerActivity extends ActionBarActivity implements IVideoPlay
     }
 
     private void showInfo(int textid, int duration) {
-        mVerticalBar.setVisibility(View.INVISIBLE);
+        if (mPresentation == null)
+            mVerticalBar.setVisibility(View.INVISIBLE);
         mInfo.setVisibility(View.VISIBLE);
         mInfo.setText(textid);
         mHandler.removeMessages(FADE_OUT_INFO);
@@ -1270,7 +1272,8 @@ public class VideoPlayerActivity extends ActionBarActivity implements IVideoPlay
      * @param text
      */
     private void showInfo(String text) {
-        mVerticalBar.setVisibility(View.INVISIBLE);
+        if (mPresentation == null)
+            mVerticalBar.setVisibility(View.INVISIBLE);
         mHandler.removeMessages(FADE_OUT_INFO);
         mInfo.setVisibility(View.VISIBLE);
         mInfo.setText(text);
@@ -1298,10 +1301,12 @@ public class VideoPlayerActivity extends ActionBarActivity implements IVideoPlay
                     VideoPlayerActivity.this, android.R.anim.fade_out));
         mInfo.setVisibility(View.INVISIBLE);
 
-        if (mVerticalBar.getVisibility() == View.VISIBLE)
-            mVerticalBar.startAnimation(AnimationUtils.loadAnimation(
-                    VideoPlayerActivity.this, android.R.anim.fade_out));
-        mVerticalBar.setVisibility(View.INVISIBLE);
+        if (mPresentation == null) {
+            if (mVerticalBar.getVisibility() == View.VISIBLE)
+                mVerticalBar.startAnimation(AnimationUtils.loadAnimation(
+                        VideoPlayerActivity.this, android.R.anim.fade_out));
+            mVerticalBar.setVisibility(View.INVISIBLE);
+        }
     }
 
     private OnAudioFocusChangeListener mAudioFocusListener = !LibVlcUtil.isFroyoOrLater() ? null :



More information about the Android mailing list