From 5d4bb79044a7392849076e44987598f6d2d9f39d Mon Sep 17 00:00:00 2001 From: Marc Blank Date: Wed, 21 Oct 2009 13:43:01 -0700 Subject: [PATCH] Go to combined inbox on notify for 2+ accounts (#2147265) DO NOT MERGE * The problem is that PendingIntents aren't updated when a notification is updated, so the changed extras when a 2nd account gets a new message aren't seen by MessageList when it's started up upon tapping the notification (it uses the extras from the 1st account to get a new message) * The fix is to use the newish (cupcake) flag in the PendingIntent that causes the extras in the PendingIntent to be updated Change-Id: If12d0e7c6d3f256befeca98b560443395820737f --- src/com/android/email/service/MailService.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/com/android/email/service/MailService.java b/src/com/android/email/service/MailService.java index 16ae347b5..48c18bf22 100644 --- a/src/com/android/email/service/MailService.java +++ b/src/com/android/email/service/MailService.java @@ -677,7 +677,8 @@ public class MailService extends Service { } // prepare appropriate pending intent, set up notification, and send - PendingIntent pending = PendingIntent.getActivity(this, 0, intent, 0); + PendingIntent pending = + PendingIntent.getActivity(this, 0, intent, PendingIntent.FLAG_UPDATE_CURRENT); Notification notification = new Notification( R.drawable.stat_notify_email_generic,