diff options
author | Scott Jackson <daneren2005@gmail.com> | 2013-12-18 07:16:04 -0800 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2013-12-18 07:16:04 -0800 |
commit | 64640a1e2691441d9c765ce292c886994e6ea422 (patch) | |
tree | 337f69a21cf6d76d2891c9790686826ea56d4f0a /src/github | |
parent | cc7f871520dbe03009748436759ed7987dc9e0df (diff) | |
download | dsub-64640a1e2691441d9c765ce292c886994e6ea422.tar.gz dsub-64640a1e2691441d9c765ce292c886994e6ea422.tar.bz2 dsub-64640a1e2691441d9c765ce292c886994e6ea422.zip |
#214 Change icon, add big text, and change text for sync notifications
Diffstat (limited to 'src/github')
-rw-r--r-- | src/github/daneren2005/dsub/service/sync/PodcastSyncAdapter.java | 4 | ||||
-rw-r--r-- | src/github/daneren2005/dsub/util/SyncUtil.java | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/src/github/daneren2005/dsub/service/sync/PodcastSyncAdapter.java b/src/github/daneren2005/dsub/service/sync/PodcastSyncAdapter.java index d22a11b9..e97f32d2 100644 --- a/src/github/daneren2005/dsub/service/sync/PodcastSyncAdapter.java +++ b/src/github/daneren2005/dsub/service/sync/PodcastSyncAdapter.java @@ -85,8 +85,8 @@ public class PodcastSyncAdapter extends SubsonicSyncAdapter { // Only add if actualy downloaded correctly
if(file.isSaved()) {
existingEpisodes.add(entry.getId());
- if(!updated.contains(entry.getAlbum())) {
- updated.add(entry.getAlbum());
+ if(!updated.contains(podcasts.getName())) {
+ updated.add(podcasts.getName());
}
}
}
diff --git a/src/github/daneren2005/dsub/util/SyncUtil.java b/src/github/daneren2005/dsub/util/SyncUtil.java index f595ff27..aed43f77 100644 --- a/src/github/daneren2005/dsub/util/SyncUtil.java +++ b/src/github/daneren2005/dsub/util/SyncUtil.java @@ -147,9 +147,10 @@ public final class SyncUtil { NotificationCompat.Builder builder;
builder = new NotificationCompat.Builder(context)
- .setSmallIcon(R.drawable.stat_notify_download)
+ .setSmallIcon(R.drawable.stat_notify_sync)
.setContentTitle(context.getResources().getString(R.string.sync_title))
.setContentText(content)
+ .setStyle(new NotificationCompat.BigTextStyle().bigText(content))
.setOngoing(false);
Intent notificationIntent = new Intent(context, SubsonicFragmentActivity.class);
|