[Android] Simplify logics
Geoffrey Métais
git at videolan.org
Mon Jun 27 16:34:06 CEST 2016
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Mon Jun 27 16:25:59 2016 +0200| [e66bf866565772684425b942335e4789bfc5f4dd] | committer: Geoffrey Métais
Simplify logics
> https://code.videolan.org/videolan/vlc-android/commit/e66bf866565772684425b942335e4789bfc5f4dd
---
vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java | 4 +---
1 file changed, 1 insertion(+), 3 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 9c5949e..d3e44fd 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -601,9 +601,7 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVLCVout.C
mSize.setOnClickListener(null);
/* Stop the earliest possible to avoid vout error */
- if (isFinishing())
- stopPlayback();
- else if (AndroidDevices.isAndroidTv() && Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP && !requestVisibleBehind(true))
+ if (isFinishing() || (AndroidDevices.isAndroidTv() && !requestVisibleBehind(true)))
stopPlayback();
}
More information about the Android
mailing list