[Android] Hide info on hide...

Geoffrey Métais git at videolan.org
Tue May 31 19:19:19 CEST 2016


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue May 31 19:19:00 2016 +0200| [8b1c58191aae3a00d538448f8264bb4118baf844] | committer: Geoffrey Métais

Hide info on hide...

> https://code.videolan.org/videolan/vlc-android/commit/8b1c58191aae3a00d538448f8264bb4118baf844
---

 .../src/org/videolan/vlc/gui/video/VideoPlayerActivity.java  | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 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 da037a9..699dc1e 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -1489,12 +1489,16 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVLCVout.C
 
     private void fadeOutInfo() {
         if (mPresentation == null) {
-            if (mOverlayInfo.getVisibility() == View.VISIBLE)
+            if (mOverlayInfo.getVisibility() == View.VISIBLE) {
                 mOverlayInfo.startAnimation(AnimationUtils.loadAnimation(
                         VideoPlayerActivity.this, android.R.anim.fade_out));
-        } else if (mInfo.getVisibility() == View.VISIBLE)
-                mInfo.startAnimation(AnimationUtils.loadAnimation(
-                        VideoPlayerActivity.this, android.R.anim.fade_out));
+                mOverlayInfo.setVisibility(View.INVISIBLE);
+            }
+        } else if (mInfo.getVisibility() == View.VISIBLE) {
+            mInfo.startAnimation(AnimationUtils.loadAnimation(
+                    VideoPlayerActivity.this, android.R.anim.fade_out));
+            mInfo.setVisibility(View.INVISIBLE);
+        }
     }
 
     @Override



More information about the Android mailing list