History log of /packages/apps/UnifiedEmail/src/com/android/mail/utils/NotificationActionUtils.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
b90a813b107d8f43236e2d3fe12f299d94c82ce8 03-Oct-2013 Tony Mantler <nicoya@google.com> Change notification code to key off android.accounts.Account

b/11023774

Change-Id: Ia65ca20b973c18ee88e699e56624fe578591ebea
/packages/apps/UnifiedEmail/src/com/android/mail/utils/NotificationActionUtils.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/utils/NotificationActionUtils.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/utils/NotificationActionUtils.java
259df5b9e11908c8ef7c91483924891dd96b3c27 11-Jul-2013 Scott Kennedy <skennedy@google.com> Add a new FolderUri

This will allow us to add query parameters such that Uris will still
appear to be equal, regardless of differences in the parameters.

Bug: 9780067
Change-Id: Iafe39763b3ee448cf02536df89caa736500dfdaf
/packages/apps/UnifiedEmail/src/com/android/mail/utils/NotificationActionUtils.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/utils/NotificationActionUtils.java
f78c53b07082f7b9ac836819981d07b51eb93bf4 06-May-2013 Scott Kennedy <skennedy@google.com> Remove MARK_SEEN action

This was never being acknowledged, and the only place that was using
it shouldn't have been using it.

Bug: 8816083
Change-Id: I4a4702b76bf006dd471f3e80f4032736aab42a5a
/packages/apps/UnifiedEmail/src/com/android/mail/utils/NotificationActionUtils.java
828bc86ffcb1274fb461fbb25cdc2a07ae76b6c8 25-Apr-2013 Andrew Sapperstein <asapperstein@google.com> Run handle/resetNotificationActions on UI thread.

Fixes b/8703644 by making the bodies of
handleNotificationActions and resetNotificationActions
post onto the UI thread for all of their work and thus
fixes the ConcurrentModificationException of
mNotificationTempDeleted. Also fixes b/8608274
because cacheValue is no longer being called
on a non-UI thread in these two functions.

Also contains a partial fix for notification
actions being undone while the conversation
view pager was open. Now we only update the
ConversationCursor's internal state when the
undo notification is tapped rather than whenever
it is dismissed.

Change-Id: I937dd7f7a0f7284a6f66b982fe363a63c3618f3f
/packages/apps/UnifiedEmail/src/com/android/mail/utils/NotificationActionUtils.java
21934896faadf6e740ec87797a9b0d1092c6bc6b 24-Apr-2013 Scott Kennedy <skennedy@google.com> Remove remains of these notification actions

To fix the build

Change-Id: I5b6f79476db443f668f6de9b121bf70198d7f0e5
/packages/apps/UnifiedEmail/src/com/android/mail/utils/NotificationActionUtils.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/utils/NotificationActionUtils.java
48cfe4613549cafdf36e2a524afba730522bf291 10-Apr-2013 Scott Kennedy <skennedy@google.com> Parse Folder out of intent

If we had a full Folder object as an extra, but no URI, we opened
the account's default inbox, instead of the desired folder.

Bug: 8526579
Change-Id: I64d1bdecea11e39fde5657910a3b3b2e22cd411a
/packages/apps/UnifiedEmail/src/com/android/mail/utils/NotificationActionUtils.java
962a6922af499db189ace88ed3ba518946764197 22-Mar-2013 Scott Kennedy <skennedy@google.com> Fix leftover issues from moving to a folder type bitmask

Bug: 8443606
Change-Id: If269b840604318b8da4342e8c1a5079fb54741ed
/packages/apps/UnifiedEmail/src/com/android/mail/utils/NotificationActionUtils.java
8c1058ee75ec4a5824a68c3c5275bc48d56bbad8 20-Mar-2013 Scott Kennedy <skennedy@google.com> Change FolderType to a bitmask

This allows one folder to have multiple types.

Bug: 8426563
Change-Id: Ide918a884cfb76022f3c03f5cc69adb149a964cc
/packages/apps/UnifiedEmail/src/com/android/mail/utils/NotificationActionUtils.java
2d8f3094d69b7ebbd9376dde7f61eb4334e86075 20-Mar-2013 Scott Kennedy <skennedy@google.com> Fix notification issues

We weren't setting the package in a couple places.

Change-Id: I504f9bf90760f1b147b326bedd771f70ecb23bf7
/packages/apps/UnifiedEmail/src/com/android/mail/utils/NotificationActionUtils.java
61bd0e84a3b0545a722bbfe931233b47afdf52e2 11-Dec-2012 Scott Kennedy <skennedy@google.com> Preliminary sectioned inbox support

Add basic support for sectioned inbox. This does not include the
teaser view or other less important UI features.

Bug: 7685676
Change-Id: I2cba26dc4acc1021f5b8ab0ca81d4e0a65f744a8
/packages/apps/UnifiedEmail/src/com/android/mail/utils/NotificationActionUtils.java
fa35361c753dd6707268a5eb02ab1a3b44db78ce 23-Feb-2013 Scott Kennedy <skennedy@google.com> resolved conflicts for merge of 1ecdd95f to jb-ub-mail-ur9

Change-Id: If3d898d8f78e8dcfeadfed07edf544b1a75cb2d1
08a079c3d2857e365736432b2691187767eb116f 22-Feb-2013 Scott Kennedy <skennedy@google.com> Hide conversations from list after removal via notif action

If a conversation is archived, deleted, or has a label removed via a
notification action, we should hide it from the conversation list
until either the undo notification is activated, or it times out.

Bug: 8248145
Change-Id: Ib88a14142238b5553f80d59e67be5f64ab2a28fb
/packages/apps/UnifiedEmail/src/com/android/mail/utils/NotificationActionUtils.java
f88076e2d09af3544881739cf9cbfa7a15397c7a 13-Feb-2013 Scott Kennedy <skennedy@google.com> am 807ff0f2: Merge "Fix "remove label" notification action crash" into jb-ub-mail-ur8

# Via Android (Google) Code Review (1) and Scott Kennedy (1)
* commit '807ff0f2fdd5e40b89fc8efcecc86fd22b7abdec':
Fix "remove label" notification action crash
143eb6ca9acb2d41e56efa5b3ceb2d82dfedf755 12-Feb-2013 Scott Kennedy <skennedy@google.com> Fix "remove label" notification action crash

Modifying raw folders was causing some issues, and is much less sane
than simply removing the one folder we no longer want.

Bug: 8182438
Change-Id: I8f5eb7b221ff27a7fd66c894079821215dacb3a3
/packages/apps/UnifiedEmail/src/com/android/mail/utils/NotificationActionUtils.java
d5edd2d02649dffb40065fdb6a16acf91552b800 05-Dec-2012 Scott Kennedy <skennedy@google.com> Move notifications to UnifiedEmail

This involves redoing the persistence model, to split general,
account, and folder settings into separate SharedPreference stores.

It also requires some preferences to be moved into UnifiedEmail.

Depends on I71802444add85dc01f6645906a629ff80b964222 (UnifiedGmail)
Depends on Ie6ec389b5b5d2e7ab1b299d0877811ae716526e2 (Email)

Change-Id: Ibe2e3f93ec164370535ffc5f5b2409544cc8d36d
/packages/apps/UnifiedEmail/src/com/android/mail/utils/NotificationActionUtils.java
caa952b4074b3d8a9f9d869355c4a98fcb904dd1 31-Jan-2013 Scott Kennedy <skennedy@google.com> Keep notification drawer open when undoing an action

If the notification drawer is open, and the last notification is
removed, it will close. So instead of removing the undo notification
and adding the original notification, we keep the undo there, and
replace it with the original.

Bug: 8106230
Change-Id: I8663f717ef3bb3863a8acd0a8dbade4b3fc9cac7
/packages/apps/UnifiedEmail/src/com/android/mail/utils/NotificationActionUtils.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/utils/NotificationActionUtils.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/utils/NotificationActionUtils.java
1007e70b1abad47c84d19890809e2b3727419607 20-Dec-2012 Scott Kennedy <skennedy@google.com> Refresh the UI after destructive notification actions

This change just appends a query parameter to the URI so that the
Gmail provider knows to force a refresh.

Bug: 7895068
Change-Id: I1314bdc09c61ef8006a2cbea73002e53c5e3bf3b
/packages/apps/UnifiedEmail/src/com/android/mail/utils/NotificationActionUtils.java
c6c93b92b4c6f156c799b4f9b2c1761caee4a30f 20-Dec-2012 Scott Kennedy <skennedy@google.com> Merge "Reorder notification actions" into jb-ub-mail-ur8
247613d2c614c25194a11aa4738c4dd1d67cd7ad 20-Dec-2012 Scott Kennedy <skennedy@google.com> Reorder notification actions

Bug: 7895597
Change-Id: I7ae7dc1c2d1bd4cdf8d2ec518093a00811adcfea
/packages/apps/UnifiedEmail/src/com/android/mail/utils/NotificationActionUtils.java
606893390dcb49a88833aa17955dbe96fa41ae4a 20-Dec-2012 Scott Kennedy <skennedy@google.com> Ensure undo bar disappears

There are some cases where the undo bar would not be dismissed after
the timeout, so this has been fixed.

Change-Id: I02d28abea7bbca42c21126a1084a2a6df6914383
/packages/apps/UnifiedEmail/src/com/android/mail/utils/NotificationActionUtils.java
a61f99847d48938589bc7f7740e2385eee5626ab 18-Dec-2012 Scott Kennedy <skennedy@google.com> Change notification undo timeout to 6 seconds

Bug: 7685493
Change-Id: I31eba6779641f907bfea0ee1e874d7fe18e13d0e
/packages/apps/UnifiedEmail/src/com/android/mail/utils/NotificationActionUtils.java
e0cb54b61a8e46a578373d153162a1aac81b8a7c 17-Dec-2012 Scott Kennedy <skennedy@google.com> Merge "Remove notifications on reply/forward action" into jb-ub-mail-ur8
c9868fd0eaa69541664ee766243ba23839aa7704 17-Dec-2012 Scott Kennedy <skennedy@google.com> Display the selected actions in the preference summary

Bug: 7875913
Change-Id: Icf9ff83aa8acd956a98d677c918a88e674d21a6f
/packages/apps/UnifiedEmail/src/com/android/mail/utils/NotificationActionUtils.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/utils/NotificationActionUtils.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/utils/NotificationActionUtils.java
b2033d855ab0f13e253e5403ce25989bcbc49488 08-Dec-2012 Andy Huang <ath@google.com> Convert rawFolders from String to FolderList

Continuing in the Parcel > String vein, switch rawFolders to use
FolderList, a small immutable Parcelable class. Individual
Folder objects are still stringified when used alone, but those
are not time-sensitive cases (e.g. generating a view intent).

Traceview on Nexus 7 shows 61% speedup in serializing and
deserializing folder rawFolders. Overall time for Conversation
construction appears to go up, but that's because the previously
lazy-deserialization is now done in the constructor. I think
this is okay, since the only performance-sensitive codepath
that constructs Conversation objects is the conversation list,
which always needs rawFolders.

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

Change-Id: I105ec247bbf30413077136cf6868079c3e4a70ef
/packages/apps/UnifiedEmail/src/com/android/mail/utils/NotificationActionUtils.java
63e1ca51511c6d3f76f7504c186258ec4b27260b 04-Dec-2012 Scott Kennedy <skennedy@google.com> Updated most of the notification action icons

Still need:
Mark important
Mark not important
Mute

Bug: 7647410
Change-Id: Idad1dcd94d923c7d2e7e9dbe3161c2f3c3e037c2
/packages/apps/UnifiedEmail/src/com/android/mail/utils/NotificationActionUtils.java
b2ce334a6109aa79e8e6b5a4e74e4f011e8eae1d 03-Dec-2012 Scott Kennedy <skennedy@google.com> Possible crashfix

Change a Parcelable.Creator to ClassLoaderCreator.

Bug: 7657093
Change-Id: Ibc2314154a156a62a1c8aa2c6c64b76c04a119f6
/packages/apps/UnifiedEmail/src/com/android/mail/utils/NotificationActionUtils.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/utils/NotificationActionUtils.java