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
This commit is contained in:
Marc Blank 2009-10-21 13:43:01 -07:00
parent ba2d6de4b7
commit 5d4bb79044

View File

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