diff options
Diffstat (limited to 'src/github/daneren2005/dsub/service/sync/MostRecentSyncAdapter.java')
-rw-r--r-- | src/github/daneren2005/dsub/service/sync/MostRecentSyncAdapter.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/github/daneren2005/dsub/service/sync/MostRecentSyncAdapter.java b/src/github/daneren2005/dsub/service/sync/MostRecentSyncAdapter.java index 82120b56..7bead10b 100644 --- a/src/github/daneren2005/dsub/service/sync/MostRecentSyncAdapter.java +++ b/src/github/daneren2005/dsub/service/sync/MostRecentSyncAdapter.java @@ -78,6 +78,11 @@ public class MostRecentSyncAdapter extends SubsonicSyncAdapter { if(updated) {
FileUtil.serialize(context, syncedList, SyncUtil.getMostRecentSyncFile(context, instance));
+
+ // If there is a new album on the active server, chances are artists need to be refreshed
+ if(Util.getActiveServer(context) == instance) {
+ musicService.getIndexes(Util.getSelectedMusicFolderId(context), true, context, null);
+ }
}
} catch(Exception e) {
Log.e(TAG, "Failed to get most recent list for " + Util.getServerName(context, instance));
|