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:
Ben Komalo 2011-07-10 14:02:50 -07:00
parent 986a0d91da
commit e9188307f2
1 changed files with 3 additions and 3 deletions

View File

@ -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,