set FLAG_ACTIVITY_TASK_ON_HOME on notification intent
Bug: 6384825 Change-Id: I9fc577ab3acdc608ce6e1781d438cc049c6ddcd6
This commit is contained in:
parent
b354794c21
commit
65432baf25
@ -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(
|
||||||
|
Loading…
Reference in New Issue
Block a user