History log of /packages/apps/UnifiedEmail/src/com/android/mail/NotificationActionIntentService.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
3806cb53f880094d811ced050342fd6ee7c4bf99 17-Jul-2014 Alan Lau <alanlau@google.com> More robust way to cancel conversation notifications.

This happens when users archive or delete email from the watch. Currently the
conversation notification is cancelled in
NotificationUtils.validateNotifications()[line 775] by comparing current ids
with previous ids stored in memory. If the gmail app is restarted, previous
ids will be cleared and some conversation notifications may not be properly
cancelled.

The solution is to add the notification id to the notification action.
NotificationActionIntentService will use the id to cancel the notification if
it is a remote action.

Bug 16371569
Bug 16376756
Bug 16020553

Change-Id: If70e075e258823906fc062b89ce9b023b419680d
/packages/apps/UnifiedEmail/src/com/android/mail/NotificationActionIntentService.java
e806c9447c7137d2a7a828e7ccdc1f8961aa1c2a 07-Jun-2014 Alan Lau <alanlau@google.com> Better user experience for Gmail wear users.
* Skip undo on phone when the action is perform remotely
* mark conversation as read after reply.

Created separate pending intent for Wear actions. NotifActionIntentService
skips the Undo for remote actions. ComposeActivity adds a converstion uri
to start a service to resend notification.

Bug 15332337
Bug 15332837
Bug 15532541

Change-Id: I9fb51ec6ac393075b08f770bbc3b3490aab622e3
/packages/apps/UnifiedEmail/src/com/android/mail/NotificationActionIntentService.java
4fe0af81874976a1995191321e35c844b2229811 21-Aug-2013 Andy Huang <ath@google.com> log notifications

Also fix a long-standing issue that caused notification intents to never
get updated during development (we weren't setting FLAG_UPDATE_CURRENT).
We can remove the version tag from the intent data URI later.

Log reply/reply-all setting.

Bug: 9861033
Change-Id: I49b2ab529de4167d1c8b42a8b053bcc2b9f65a23
/packages/apps/UnifiedEmail/src/com/android/mail/NotificationActionIntentService.java
781f7e322283229483b048776fcb6857c38a72b5 15-Aug-2013 Scott Kennedy <skennedy@google.com> Add more logging for notification actions

Bug: 10161543
Change-Id: Ic0fc9e6881c951f69cce4e04edd55f7a82db017f
/packages/apps/UnifiedEmail/src/com/android/mail/NotificationActionIntentService.java
621981ca3fb5f7b461edeac7ac4df765fe72f582 28-Jun-2013 Scott Kennedy <skennedy@google.com> Don't pass custom Parcelables to AlarmManager

AlarmManager unparcels everything in the Bundle, which causes a
ClassNotFoundException.

So we'll take some code from Clock, and shove a NotificationAction
into a byte array, and parcel that. Other processes can unparcel this
without causing any problems.

Bug: 9051575
Change-Id: Ie8fbf1f8b4e8a1523f02c2d84fe50a780a4d90c7
/packages/apps/UnifiedEmail/src/com/android/mail/NotificationActionIntentService.java
ddd17bc2963b67ba07dfd1e2d9b1f17abf8c8e4a 22-Apr-2013 Andrew Sapperstein <asapperstein@google.com> Resend notifications for undone account-folder.

Fixes b/7923968. Instead of resending all notifications
when the undo bar disappears, we only resend notifications
for the account-folder pair that had the undone notification.
This means that when the undo notification disappears,
no additional notifications will go out.

Change-Id: I55155e9abfbe34cc7c0fc4f0e6448a70e921413b
/packages/apps/UnifiedEmail/src/com/android/mail/NotificationActionIntentService.java
5fa60977a5d0316dd7cfc70ebe1fcb0c49bc8f95 27-Mar-2013 Yu Ping Hu <yph@google.com> Change the notification action strings.

Multi-project change with:
If514cfed9538f0c2433a9427f15608ba5878ee05 (Email)
I407b8900220e7dbdda81d6572f0ee374ae3d3833 (UnifiedGmail)

Bug: 8483722
Change-Id: I86b368de45533faa3f639f631d56e16f5cbca36e
/packages/apps/UnifiedEmail/src/com/android/mail/NotificationActionIntentService.java
5680ec22f92125cbd95ff0f8d18d5cc04c6f0b81 07-Jan-2013 Scott Kennedy <skennedy@google.com> Dismiss lock screen for reply notification action

If no real lock is set, selecting a notification action should launch
the ComposeActivity in front of the lock screen.

Rather than going through a Service, we now launch ComposeActivity
directly, and clear the notification from there.

Bug: 7957838
Change-Id: I6344c93656106b2875bafac5bec18236d5c1d996
/packages/apps/UnifiedEmail/src/com/android/mail/NotificationActionIntentService.java
028340203f349737c6db2f8e5a4a86859c75042d 21-Dec-2012 Scott Kennedy <skennedy@google.com> Archiving conversation from notification should mark it seen

Bug: 7901223
Change-Id: Iebc2010ae0f489fd6955c88a1d32df94baa9ce68
/packages/apps/UnifiedEmail/src/com/android/mail/NotificationActionIntentService.java
f2566a42b5dec4e846391ee0d7ecae0891356653 15-Dec-2012 Scott Kennedy <skennedy@google.com> Remove notifications on reply/forward action

Clear the notifications when the user selects the reply/reply-all/
forward action.

Also fixes a bug with those actions not always doing the right thing.

Bug: 7742529
Change-Id: I479eef30864fe1fcae3e9c7aafaa21481e51d05c
/packages/apps/UnifiedEmail/src/com/android/mail/NotificationActionIntentService.java
d53560ee123acfe5fa3f8185814c137704767efc 15-Dec-2012 Scott Kennedy <skennedy@google.com> Remove some notification actions

Bug: 7742911
Change-Id: Ifd1a45331280a2e9c4dc0f200818ad71d60f02a0
/packages/apps/UnifiedEmail/src/com/android/mail/NotificationActionIntentService.java
07342eff9ca95b9db665f1453565ea895f3b125f 04-Dec-2012 Scott Kennedy <skennedy@google.com> Update some TODOs

Change-Id: I105ec247bbf30413077136cf6868079c3e4a70ef
/packages/apps/UnifiedEmail/src/com/android/mail/NotificationActionIntentService.java
3168c2a75edbf597932ab9edfd96037ceba99b35 01-Dec-2012 Scott Kennedy <skennedy@google.com> Move notification actions to UnifiedEmail

Change-Id: Ib4507c880334b2b7c3b8549d7f30a7260e09b4a1
/packages/apps/UnifiedEmail/src/com/android/mail/NotificationActionIntentService.java