set FLAG_ACTIVITY_TASK_ON_HOME on notification intent

Bug: 6384825
Change-Id: I9fc577ab3acdc608ce6e1781d438cc049c6ddcd6
This commit is contained in:
Paul Westbrook 2012-04-26 18:26:57 -07:00
parent b354794c21
commit 65432baf25

View File

@ -443,7 +443,8 @@ 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); intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK |
Intent.FLAG_ACTIVITY_TASK_ON_HOME);
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(