DO NOT MERGE. Fix issue where back stack is not cleared when opening email from a notification.

Fixes b/5716835 back stack in email gets messed up in certain circumstances

Change-Id: I499a1c19f1ebbb7e4debde690cacf17f9f6c3454
This commit is contained in:
Mindy Pereira 2011-12-08 13:47:02 -08:00
parent 0130c5a037
commit 6d7eef22cd

View File

@ -443,7 +443,7 @@ public class NotificationController {
} else { } else {
intent = Welcome.createOpenMessageIntent(mContext, accountId, mailboxId, messageId); intent = Welcome.createOpenMessageIntent(mContext, accountId, mailboxId, messageId);
} }
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);
long now = mClock.getTime(); long now = mClock.getTime();
boolean enableAudio = (now - mLastMessageNotifyTime) > MIN_SOUND_INTERVAL_MS; boolean enableAudio = (now - mLastMessageNotifyTime) > MIN_SOUND_INTERVAL_MS;
Notification notification = createAccountNotification( Notification notification = createAccountNotification(