[Android] Fix recommendations being generated twice

Geoffrey Métais git at videolan.org
Thu Apr 23 15:33:35 CEST 2015


vlc-ports/android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu Apr 23 15:32:42 2015 +0200| [7ba437b64d87858149711ae7a4e040c40fe7abfd] | committer: Geoffrey Métais

Fix recommendations being generated twice

> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=7ba437b64d87858149711ae7a4e040c40fe7abfd
---

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

diff --git a/vlc-android/tv/src/org/videolan/vlc/gui/tv/RecommendationsService.java b/vlc-android/tv/src/org/videolan/vlc/gui/tv/RecommendationsService.java
index 15768f5..a529b04 100644
--- a/vlc-android/tv/src/org/videolan/vlc/gui/tv/RecommendationsService.java
+++ b/vlc-android/tv/src/org/videolan/vlc/gui/tv/RecommendationsService.java
@@ -148,8 +148,8 @@ public class RecommendationsService extends IntentService {
                 buildRecommendation(mediaWrapper, ++id, Notification.PRIORITY_DEFAULT);
             }
             if (id == NUM_RECOMMANDATIONS)
-                return true;
+                break;
         }
-        return false;
+        return true;
     }
 }



More information about the Android mailing list