aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2013-09-13 10:25:25 -0700
committerScott Jackson <daneren2005@gmail.com>2013-09-13 10:25:25 -0700
commitb2f01a9fd963d8f096dcfe68af842df3084bb22c (patch)
tree149071ba36346669d738c027c516d858d8696b12 /src
parent371f315bbae62816501c79e1bde93cef25b4852b (diff)
downloaddsub-b2f01a9fd963d8f096dcfe68af842df3084bb22c.tar.gz
dsub-b2f01a9fd963d8f096dcfe68af842df3084bb22c.tar.bz2
dsub-b2f01a9fd963d8f096dcfe68af842df3084bb22c.zip
Fix notifications not creating new backstack
Diffstat (limited to 'src')
-rw-r--r--src/github/daneren2005/dsub/util/Util.java4
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();