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);