[Android] Fix build
Sébastien Toque
git at videolan.org
Fri Mar 4 21:20:03 CET 2016
vlc-android | branch: master | Sébastien Toque <xilasz at gmail.com> | Fri Mar 4 21:06:30 2016 +0100| [49dd04c64096e5af0981c11f47318091ee061f2f] | committer: Sébastien Toque
Fix build
> https://code.videolan.org/videolan/vlc-android/commit/49dd04c64096e5af0981c11f47318091ee061f2f
---
vlc-android/src/org/videolan/vlc/RecommendationsService.java | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/vlc-android/src/org/videolan/vlc/RecommendationsService.java b/vlc-android/src/org/videolan/vlc/RecommendationsService.java
index adc8a51..2be8939 100644
--- a/vlc-android/src/org/videolan/vlc/RecommendationsService.java
+++ b/vlc-android/src/org/videolan/vlc/RecommendationsService.java
@@ -129,14 +129,13 @@ public class RecommendationsService extends IntentService {
private boolean doRecommendations() {
mNotificationManager.cancelAll();
+ int id = 0;
ArrayList<MediaWrapper> videoList = MediaLibrary.getInstance().getVideoItems();
if (videoList == null || videoList.isEmpty())
return false;
Bitmap pic;
Collections.shuffle(videoList);
for (MediaWrapper mediaWrapper : videoList){
- if (TextUtils.equals(mediaWrapper.getLocation(), last))
- continue;
pic = mMediaDatabase.getPicture(mediaWrapper.getUri());
if (pic != null && pic.getByteCount() > 4 && mediaWrapper.getTime() == 0) {
buildRecommendation(mediaWrapper, ++id, Notification.PRIORITY_DEFAULT);
More information about the Android
mailing list