[Android] Use util method for visibility

Geoffrey Métais git at videolan.org
Tue Nov 29 16:20:50 CET 2016


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue Nov 29 16:19:47 2016 +0100| [323c0839e08029f910f36d84f0b0fde94bbe7143] | committer: Geoffrey Métais

Use util method for visibility

> https://code.videolan.org/videolan/vlc-android/commit/323c0839e08029f910f36d84f0b0fde94bbe7143
---

 vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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 3cc97d7..d3ca4f0 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -2733,7 +2733,7 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVLCVout.C
             mHandler.removeMessages(SHOW_PROGRESS);
             Log.i(TAG, "remove View!");
             mObjectFocused = getCurrentFocus();
-            if (mOverlayTips != null) mOverlayTips.setVisibility(View.INVISIBLE);
+            UiTools.setViewVisibility(mOverlayTips, View.INVISIBLE);
             if (!fromUser && !mIsLocked) {
                 mOverlayProgress.startAnimation(AnimationUtils.loadAnimation(this, android.R.anim.fade_out));
                 mPlayPause.startAnimation(AnimationUtils.loadAnimation(this, android.R.anim.fade_out));



More information about the Android mailing list