[Android] VideoPlayerActivity: remove useless null check

Thomas Guillem git at videolan.org
Fri Oct 20 17:32:12 CEST 2017


vlc-android | branch: master | Thomas Guillem <thomas at gllm.fr> | Fri Oct 20 17:13:07 2017 +0200| [0bae16533f3ea6b1e80eef3f1790833ffd7ef664] | committer: Thomas Guillem

VideoPlayerActivity: remove useless null check

> https://code.videolan.org/videolan/vlc-android/commit/0bae16533f3ea6b1e80eef3f1790833ffd7ef664
---

 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 786e1b8fb..8cf3713f0 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -952,7 +952,7 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVLCVout.C
         vlcVout.removeCallback(this);
         vlcVout.detachViews();
 
-        if (mService.hasMedia() && mSwitchingView && mService != null) {
+        if (mService.hasMedia() && mSwitchingView) {
             Log.d(TAG, "mLocation = \"" + mUri + "\"");
             if (mSwitchToPopup)
                 mService.switchToPopup(mService.getCurrentMediaPosition());



More information about the Android mailing list