diff options
author | daneren2005 <daneren2005@gmail.com> | 2014-06-27 16:05:53 -0700 |
---|---|---|
committer | daneren2005 <daneren2005@gmail.com> | 2014-06-27 16:05:53 -0700 |
commit | 8d21df50cb8a7cd0961c054d0050c1b2634c503d (patch) | |
tree | 66029e925d3ddec8c1b15b01bb53496bd5cb568c | |
parent | 097b04ed83250619def3935df3808b9d57bbc391 (diff) | |
download | dsub-8d21df50cb8a7cd0961c054d0050c1b2634c503d.tar.gz dsub-8d21df50cb8a7cd0961c054d0050c1b2634c503d.tar.bz2 dsub-8d21df50cb8a7cd0961c054d0050c1b2634c503d.zip |
Set sync notifications to group and have a low priority
-rw-r--r-- | src/github/daneren2005/dsub/util/Notifications.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/github/daneren2005/dsub/util/Notifications.java b/src/github/daneren2005/dsub/util/Notifications.java index c6e9b14f..ca76e5ba 100644 --- a/src/github/daneren2005/dsub/util/Notifications.java +++ b/src/github/daneren2005/dsub/util/Notifications.java @@ -48,6 +48,7 @@ public final class Notifications { // Notification IDs.
public static final int NOTIFICATION_ID_PLAYING = 100;
public static final int NOTIFICATION_ID_DOWNLOADING = 102;
+ public static final String NOTIFICATION_SYNC_GROUP = "github.daneren2005.dsub.sync";
private static boolean playShowing = false;
private static boolean downloadShowing = false;
@@ -296,7 +297,9 @@ public final class Notifications { .setContentTitle(context.getResources().getString(R.string.sync_title))
.setContentText(content)
.setStyle(new NotificationCompat.BigTextStyle().bigText(content.replace(", ", "\n")))
- .setOngoing(false);
+ .setOngoing(false)
+ .setGroup(NOTIFICATION_SYNC_GROUP)
+ .setPriority(NotificationCompat.PRIORITY_LOW);
Intent notificationIntent = new Intent(context, SubsonicFragmentActivity.class);
notificationIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP);
|