diff options
author | Scott Jackson <daneren2005@gmail.com> | 2013-09-13 10:25:25 -0700 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2013-09-13 10:25:25 -0700 |
commit | b2f01a9fd963d8f096dcfe68af842df3084bb22c (patch) | |
tree | 149071ba36346669d738c027c516d858d8696b12 /src/github/daneren2005/dsub/util/Util.java | |
parent | 371f315bbae62816501c79e1bde93cef25b4852b (diff) | |
download | dsub-b2f01a9fd963d8f096dcfe68af842df3084bb22c.tar.gz dsub-b2f01a9fd963d8f096dcfe68af842df3084bb22c.tar.bz2 dsub-b2f01a9fd963d8f096dcfe68af842df3084bb22c.zip |
Fix notifications not creating new backstack
Diffstat (limited to 'src/github/daneren2005/dsub/util/Util.java')
-rw-r--r-- | src/github/daneren2005/dsub/util/Util.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/github/daneren2005/dsub/util/Util.java b/src/github/daneren2005/dsub/util/Util.java index e9e58452..ce3621fb 100644 --- a/src/github/daneren2005/dsub/util/Util.java +++ b/src/github/daneren2005/dsub/util/Util.java @@ -838,7 +838,7 @@ public final class Util { Intent notificationIntent = new Intent(context, MainActivity.class); notificationIntent.putExtra(Constants.INTENT_EXTRA_NAME_DOWNLOAD, true); notificationIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP); - notification.contentIntent = PendingIntent.getActivity(context, 0, notificationIntent, 0); + notification.contentIntent = PendingIntent.getActivity(context, 0, notificationIntent, Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP); handler.post(new Runnable() { @Override @@ -945,7 +945,7 @@ public final class Util { notificationIntent.putExtra(Constants.INTENT_EXTRA_NAME_DOWNLOAD, true); notificationIntent.putExtra(Constants.INTENT_EXTRA_NAME_DOWNLOAD_VIEW, true); notificationIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP); - builder.setContentIntent(PendingIntent.getActivity(context, 0, notificationIntent, 0)); + builder.setContentIntent(PendingIntent.getActivity(context, 0, notificationIntent, Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP)); final Notification notification = builder.build(); |