1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-16 06:25:06 -05:00

Merge pull request #225 from maniac103/fix-multiaccount-notification

Fix notification click behaviour for multiple accounts.
This commit is contained in:
Andrew Chen 2013-01-14 15:14:06 -08:00
commit bdf2283ef4

View File

@ -4822,8 +4822,8 @@ public class MessagingController implements Runnable {
targetIntent = FolderList.actionHandleNotification(context, account, initialFolder);
}
PendingIntent pi = PendingIntent.getActivity(context, 0, targetIntent, PendingIntent.FLAG_UPDATE_CURRENT);
builder.setContentIntent(pi);
builder.setContentIntent(PendingIntent.getActivity(context,
account.getAccountNumber(), targetIntent, PendingIntent.FLAG_UPDATE_CURRENT));
builder.setDeleteIntent(NotificationActionService.getAcknowledgeIntent(context, account));
// Only ring or vibrate if we have not done so already on this account and fetch