Fix notification Intent.
This changes it so that the message list is shown if there are multiple unseen messages. Bug: 5011855 Change-Id: I14cbcfaa32cc5e2b4cb718449c62b8f39b290d4d
This commit is contained in:
parent
986a0d91da
commit
e9188307f2
|
@ -396,10 +396,10 @@ public class NotificationController {
|
|||
final Bitmap largeIcon = senderPhoto != null ? senderPhoto : mGenericSenderIcon;
|
||||
final Integer number = unreadCount > 1 ? unreadCount : null;
|
||||
final Intent intent;
|
||||
if (unseenMessageCount >= 1) {
|
||||
intent = Welcome.createOpenMessageIntent(mContext, accountId, mailboxId, messageId);
|
||||
} else {
|
||||
if (unseenMessageCount > 1) {
|
||||
intent = Welcome.createOpenAccountInboxIntent(mContext, accountId);
|
||||
} else {
|
||||
intent = Welcome.createOpenMessageIntent(mContext, accountId, mailboxId, messageId);
|
||||
}
|
||||
|
||||
Notification notification = createAccountNotification(account, null, title, text,
|
||||
|
|
Loading…
Reference in New Issue