From 331c3059bbbee1a4c8a795e2f55d916992ff37e8 Mon Sep 17 00:00:00 2001 From: Sebastian Seedorf Date: Fri, 1 Feb 2019 17:43:17 +0100 Subject: [PATCH] Notification activity stack fix --- .../de/sebse/fuplanner/tools/CustomNotificationManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/de/sebse/fuplanner/tools/CustomNotificationManager.java b/app/src/main/java/de/sebse/fuplanner/tools/CustomNotificationManager.java index 73e8f46..36f8da7 100644 --- a/app/src/main/java/de/sebse/fuplanner/tools/CustomNotificationManager.java +++ b/app/src/main/java/de/sebse/fuplanner/tools/CustomNotificationManager.java @@ -20,7 +20,7 @@ public class CustomNotificationManager { public static void sendNotification(Context context, String textTitle, String textContent) { Intent intent = new Intent(context, MainActivity.class); - intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK); + intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK | Intent.FLAG_ACTIVITY_TASK_ON_HOME); PendingIntent pendingIntent = PendingIntent.getActivity(context, 0, intent, 0);