[Android] Logic fix

Geoffrey Métais git at videolan.org
Wed Apr 20 15:34:01 CEST 2016


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Wed Apr 20 15:33:13 2016 +0200| [271a73738700cd10b32e337e9ab67722edb4e9d4] | committer: Geoffrey Métais

Logic fix

> https://code.videolan.org/videolan/vlc-android/commit/271a73738700cd10b32e337e9ab67722edb4e9d4
---

 vlc-android/src/org/videolan/vlc/PlaybackService.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/vlc-android/src/org/videolan/vlc/PlaybackService.java b/vlc-android/src/org/videolan/vlc/PlaybackService.java
index b81a3bf..87375da 100644
--- a/vlc-android/src/org/videolan/vlc/PlaybackService.java
+++ b/vlc-android/src/org/videolan/vlc/PlaybackService.java
@@ -1457,7 +1457,7 @@ public class PlaybackService extends Service implements IVLCVout.Callback {
 
     @MainThread
     public boolean canShuffle()  {
-        return (getMediaListSize() > 2) ? true : false;
+        return getMediaListSize() > 2;
     }
 
     @MainThread
@@ -1472,7 +1472,7 @@ public class PlaybackService extends Service implements IVLCVout.Callback {
 
     @MainThread
     public boolean hasPlaylist()  {
-        return (getMediaListSize() > 1) ? true : false;
+        return getMediaListSize() > 1;
     }
 
     @MainThread



More information about the Android mailing list