From 2df61456f4aef692316acbb39b69de4c78a9f8bb Mon Sep 17 00:00:00 2001 From: Mindy Pereira Date: Thu, 8 Dec 2011 13:31:04 -0800 Subject: [PATCH] Clear back stack and make this the top level stack. Fixes b/5716835 back stack in email gets messed up in certain circumstances Change-Id: I6fb593a520931b16e973f025c00709f7e76bb4d9 --- src/com/android/email/NotificationController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/android/email/NotificationController.java b/src/com/android/email/NotificationController.java index eaf0213ad..859808e3c 100644 --- a/src/com/android/email/NotificationController.java +++ b/src/com/android/email/NotificationController.java @@ -446,7 +446,7 @@ public class NotificationController { } else { intent = Welcome.createOpenMessageIntent(mContext, accountId, mailboxId, messageId); } - + intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK); long now = mClock.getTime(); boolean enableAudio = (now - mLastMessageNotifyTime) > MIN_SOUND_INTERVAL_MS; Notification notification = createAccountNotification(