diff options
author | Scott Jackson <daneren2005@gmail.com> | 2014-04-15 22:04:56 -0700 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2014-04-15 22:04:56 -0700 |
commit | 016a0b31da1ceb42a4422023ba1ffe9ff360ab39 (patch) | |
tree | a6a598e40000754fc8154b02480b4b4d77ba677b /src | |
parent | 500a1031b9f6b98ab85cb962d4dab706a3938981 (diff) | |
download | dsub-016a0b31da1ceb42a4422023ba1ffe9ff360ab39.tar.gz dsub-016a0b31da1ceb42a4422023ba1ffe9ff360ab39.tar.bz2 dsub-016a0b31da1ceb42a4422023ba1ffe9ff360ab39.zip |
Only show notification after entire playlist sync is done
Diffstat (limited to 'src')
-rw-r--r-- | src/github/daneren2005/dsub/service/sync/PlaylistSyncAdapter.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/github/daneren2005/dsub/service/sync/PlaylistSyncAdapter.java b/src/github/daneren2005/dsub/service/sync/PlaylistSyncAdapter.java index 5c518d7e..f680becf 100644 --- a/src/github/daneren2005/dsub/service/sync/PlaylistSyncAdapter.java +++ b/src/github/daneren2005/dsub/service/sync/PlaylistSyncAdapter.java @@ -116,12 +116,13 @@ public class PlaylistSyncAdapter extends SubsonicSyncAdapter { Log.e(TAG, "Failed to get playlist " + id + " for " + serverName, e);
}
- if(updated.size() > 0) {
- SyncUtil.showSyncNotification(context, R.string.sync_new_playlists, SyncUtil.joinNames(updated));
- }
if(updated.size() > 0 || removed) {
SyncUtil.setSyncedPlaylists(context, instance, playlistList);
}
}
+
+ if(updated.size() > 0) {
+ SyncUtil.showSyncNotification(context, R.string.sync_new_playlists, SyncUtil.joinNames(updated));
+ }
}
}
|