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
1 changed files with 2 additions and 1 deletions

View File

@ -443,7 +443,8 @@ public class NotificationController {
} else {
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();
boolean enableAudio = (now - mLastMessageNotifyTime) > MIN_SOUND_INTERVAL_MS;
Notification notification = createAccountNotification(