From c14aed4b2641b81d09f8e079a8c6d71767c46efe Mon Sep 17 00:00:00 2001 From: daneren2005 Date: Mon, 19 May 2014 14:53:17 -0700 Subject: Only display notification if something downloaded downloadRecursively returns true if anything was actually downloaded --- src/github/daneren2005/dsub/service/sync/MostRecentSyncAdapter.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/github/daneren2005/dsub/service/sync/MostRecentSyncAdapter.java b/src/github/daneren2005/dsub/service/sync/MostRecentSyncAdapter.java index df989bb3..09194d25 100644 --- a/src/github/daneren2005/dsub/service/sync/MostRecentSyncAdapter.java +++ b/src/github/daneren2005/dsub/service/sync/MostRecentSyncAdapter.java @@ -69,8 +69,9 @@ public class MostRecentSyncAdapter extends SubsonicSyncAdapter { if(!syncedList.contains(album.getId())) { if(!"Podcast".equals(album.getGenre())) { try { - downloadRecursively(null, musicService.getMusicDirectory(album.getId(), album.getTitle(), true, context, null), context, false); - updated.add(album.getTitle()); + if(downloadRecursively(null, musicService.getMusicDirectory(album.getId(), album.getTitle(), true, context, null), context, false)) { + updated.add(album.getTitle()); + } } catch(Exception e) { Log.w(TAG, "Failed to get songs for " + album.getId() + " on " + Util.getServerName(context, instance)); } -- cgit v1.2.3