summaryrefslogtreecommitdiff
path: root/src/com/android/mail/utils/NotificationActionUtils.java
Commit message (Collapse)AuthorAgeFilesLines
* Fix NPE when parameter is null in NotificationActionUtilsRégis Décamps2014-10-151-2/+2
| | | | | | | | Fix NullPointerException in NotificationActionUtils if the intent omits the account or the folder. Bug: 17713589 Gmail crashes when accessing an old notification for an account that has been deleted Change-Id: Ib6d44c6fcb9a62ceacf6c8c288b7a2422faa5ee5
* Allow to resend all notificationsRégis Décamps2014-10-151-3/+7
| | | | | | | | | | | The underlying NotificationUtils allows to resend notifications on all accounts and folders by passing null. Fix NullPointerException in NotificationActionUtils if the intent omits these extra. Bug: 17713589 Gmail crashes when accessing an old notification for an account that has been deleted. Change-Id: I6c2cf5234006f4859fea5bbaa52970963bcfccdd
* Revert "Force Show Vector Drawables (UnifiedEmail)"Rohan Shah2014-10-131-1/+1
| | | | | | | | Need to revert - doesn't build on Mac OS This reverts commit a2023f30e61405506b6bab84575bd425957ae171. Change-Id: I84ffde14135857402e4249a1dec9040a80deff21
* Force Show Vector Drawables (UnifiedEmail)Rohan Shah2014-10-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Added anydpi-v21 drawable folder, which causes the system to prioritize the xmls in the folder and use them over the ones in xxhdpi for xxxhdpi devices. Also removed unnecessary xxxhdpi icons and updated notif mail and multiple_mail icons. Removed three files from the vector drawable folder as we cannot call BitmapFactory.decodeResources(...) on vector drawables: - ic_star_outline_20dp - ic_star_20dp - ic_check_wht_24dp We will have to go back and change how we initialize the bitmaps from the vector drawables later. These have been recorded in the bug. Finally, updated notification and parent folder icons. Bug: 17936539 Change-Id: If7759b47824a06aadd4ec038cb6ab7fb8e5fdfe3
* Set category on the mail notificationsPaul Westbrook2014-08-221-0/+1
| | | | | Bug: 17184305 Change-Id: Iae0f5e958ca47253419641ed24d6e27643e99c17
* Update Notifications Icon (UnifiedEmail)Rohan Shah2014-08-151-1/+1
| | | | | | Rest in pieces little gmail icon :( Change-Id: I092e902d5c3008016d70e4817f57daf6998b936f
* Update Notifications (UnifiedEmail)Rohan Shah2014-08-141-1/+1
| | | | | | | | | | | | | Updated most of the notifications and added color for them. Still missing a few things: - No Big Icon BG (waiting for possible addition to frmwrk) - Small mail icon is still there with multiple mail icon (code's in place but I'm looking for a better sol) - Badge (small) Icon is really small at the top of the bar which should be fixed soon Bug: 16987147 Change-Id: I44de8eab32250d1486805a652e8c04db89268c62
* New assets. b/16463154Andrew Sapperstein2014-08-021-3/+3
| | | | Change-Id: I834a70dde51b44be793610aa174c604257633469
* Action bar update - asset swapping. b/16167419Andrew Sapperstein2014-07-211-3/+3
| | | | | | | | Not all assets are ready, but those that are have been swapped in this CL for TL and CV. This CL does none of the changes for action item placement. Change-Id: I7ce383806a9c9e6591b77f646bb5ba569be74810
* More robust way to cancel conversation notifications.Alan Lau2014-07-171-3/+12
| | | | | | | | | | | | | | | | | | | 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
* Better user experience for Gmail wear users.Alan Lau2014-06-101-10/+82
| | | | | | | | | | | | | | | * 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
* Set child notification (email in a bundle) to autocancel. Also add intentAlan Lau2014-06-021-0/+1
| | | | | | | | data to undo delete intent that should have been fix previously. Bug 15332837 Change-Id: I3bc86e19ac724d74e2fd037d54462a6794a7f27f
* Adding data to the pending intent for notification action. This is now neededAlan Lau2014-05-301-0/+6
| | | | | | | | | because Wear allows users to perform action on each conversation and therefore the pending intent can't be shared. Bug 15344221 Change-Id: I2fce22ce8b768213802c11308e31c3d8cfff17eb
* Use wear icons for reply and reply all actions.Alan Lau2014-05-271-4/+22
| | | | | | Bug 13368617. Change-Id: Icac31e9672a4f3355d8681bd3019a9da19ffa2b2
* Port Gmail to new wearable api.Alan Lau2014-05-271-7/+5
| | | | Change-Id: I6ec0e72945814d11be8396f5984bc627b75378e7
* Add reply choices for replying email from wearable.Alan Lau2014-05-221-1/+6
| | | | | | Bug 14996128 Change-Id: I9e345cdf6e065393771f50834c59fa2f78c23939
* Wearable notification api change.Alan Lau2014-05-211-4/+5
| | | | | | | Bug 14685201 Change-Id: I24ac8086f685bf6b3dcd1847f755590b8fdc9dfa (cherry picked from commit 575255c9ad5bcb708f60e928bdafe32301dcf667)
* Use new notification action api to fix the remote button problem.Alan Lau2014-04-221-10/+11
| | | | | | Bug 14218390 Change-Id: Ib66f951645baf542369765ae9bd7b0573cf58220
* Disable remote input to unblock gmail.Alan Lau2014-04-221-2/+3
| | | | | | | Bug 14218390. Change-Id: I85dc06325f3c15a344c41210a44fc0377d460e97 (cherry picked from commit 191c6935ae19dd658b07c7d78f963cc362400592)
* Add dependency to prebuilt wearable jar.Alan Lau2014-04-181-2/+2
| | | | | | | Bug 14131130 Change-Id: Ia8af84c25bc7ab9450907184022c9a577ec7effd (cherry picked from commit b73a16671e5ff1d5a7bfd4fb0ff40053f524a0d6)
* Fix reply from notification actionsScott Kennedy2014-04-151-10/+0
| | | | | Bug: 13983465 Change-Id: I2e79cabb0030641b405961393bacb83c5af32998
* Remove an unused methodScott Kennedy2014-04-151-10/+0
| | | | Change-Id: Ib6320576089dee85cb68f8edd6a1f19385678467
* Gmail changes to support Android WearAlan Lau2014-03-271-6/+25
| | | | | | | | | | | | | * Replace reply/reply all action with Android Wear action. * ComposeActivity handles the reply intent and sends email in the background using AsyncTask. * Create notification bundle for all message so that user can apply action to each of the message inside the bundle. Bug 13405604 Bug 13629669 Change-Id: Ia7efa28c7f333b9571d7e99e83cba6124f843e50
* Get rid of Account#nameTony Mantler2014-03-031-1/+1
| | | | | | b/13249115 Change-Id: I5478b139cba9e3e37924c3af1c7a4f818a803fa3
* Change notification code to key off android.accounts.AccountTony Mantler2013-10-031-3/+5
| | | | | | b/11023774 Change-Id: Ia65ca20b973c18ee88e699e56624fe578591ebea
* log notificationsAndy Huang2013-08-221-0/+2
| | | | | | | | | | | 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
* Add more logging for notification actionsScott Kennedy2013-08-151-0/+27
| | | | | Bug: 10161543 Change-Id: Ic0fc9e6881c951f69cce4e04edd55f7a82db017f
* Add a new FolderUriScott Kennedy2013-07-161-3/+3
| | | | | | | | 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
* Don't pass custom Parcelables to AlarmManagerScott Kennedy2013-07-081-12/+26
| | | | | | | | | | | | 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
* Remove MARK_SEEN actionScott Kennedy2013-05-051-13/+0
| | | | | | | | This was never being acknowledged, and the only place that was using it shouldn't have been using it. Bug: 8816083 Change-Id: I4a4702b76bf006dd471f3e80f4032736aab42a5a
* Run handle/resetNotificationActions on UI thread.Andrew Sapperstein2013-04-261-0/+17
| | | | | | | | | | | | | | | | | | | 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
* Remove remains of these notification actionsScott Kennedy2013-04-241-51/+1
| | | | | | To fix the build Change-Id: I5b6f79476db443f668f6de9b121bf70198d7f0e5
* Resend notifications for undone account-folder.Andrew Sapperstein2013-04-231-5/+12
| | | | | | | | | | 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
* Parse Folder out of intentScott Kennedy2013-04-101-1/+1
| | | | | | | | 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
* Fix leftover issues from moving to a folder type bitmaskScott Kennedy2013-03-211-3/+1
| | | | | Bug: 8443606 Change-Id: If269b840604318b8da4342e8c1a5079fb54741ed
* Change FolderType to a bitmaskScott Kennedy2013-03-201-4/+3
| | | | | | | This allows one folder to have multiple types. Bug: 8426563 Change-Id: Ide918a884cfb76022f3c03f5cc69adb149a964cc
* Fix notification issuesScott Kennedy2013-03-191-0/+2
| | | | | | We weren't setting the package in a couple places. Change-Id: I504f9bf90760f1b147b326bedd771f70ecb23bf7
* Preliminary sectioned inbox supportScott Kennedy2013-02-281-4/+6
| | | | | | | | Add basic support for sectioned inbox. This does not include the teaser view or other less important UI features. Bug: 7685676 Change-Id: I2cba26dc4acc1021f5b8ab0ca81d4e0a65f744a8
* resolved conflicts for merge of 1ecdd95f to jb-ub-mail-ur9Scott Kennedy2013-02-221-14/+31
|\ | | | | | | Change-Id: If3d898d8f78e8dcfeadfed07edf544b1a75cb2d1
| * Hide conversations from list after removal via notif actionScott Kennedy2013-02-221-14/+31
| | | | | | | | | | | | | | | | | | 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
* | am 807ff0f2: Merge "Fix "remove label" notification action crash" into ↵Scott Kennedy2013-02-121-5/+5
|\| | | | | | | | | | | | | | | jb-ub-mail-ur8 # Via Android (Google) Code Review (1) and Scott Kennedy (1) * commit '807ff0f2fdd5e40b89fc8efcecc86fd22b7abdec': Fix "remove label" notification action crash
| * Fix "remove label" notification action crashScott Kennedy2013-02-121-5/+5
| | | | | | | | | | | | | | | | 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
* | Move notifications to UnifiedEmailScott Kennedy2013-02-071-87/+88
|/ | | | | | | | | | | | 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
* Keep notification drawer open when undoing an actionScott Kennedy2013-01-311-6/+12
| | | | | | | | | | 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
* Dismiss lock screen for reply notification actionScott Kennedy2013-01-071-36/+6
| | | | | | | | | | | 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
* Archiving conversation from notification should mark it seenScott Kennedy2012-12-211-0/+11
| | | | | Bug: 7901223 Change-Id: Iebc2010ae0f489fd6955c88a1d32df94baa9ce68
* Refresh the UI after destructive notification actionsScott Kennedy2012-12-201-1/+2
| | | | | | | | 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
* Merge "Reorder notification actions" into jb-ub-mail-ur8Scott Kennedy2012-12-191-5/+5
|\
| * Reorder notification actionsScott Kennedy2012-12-191-5/+5
| | | | | | | | | | Bug: 7895597 Change-Id: I7ae7dc1c2d1bd4cdf8d2ec518093a00811adcfea
* | Ensure undo bar disappearsScott Kennedy2012-12-191-4/+16
|/ | | | | | | There are some cases where the undo bar would not be dismissed after the timeout, so this has been fixed. Change-Id: I02d28abea7bbca42c21126a1084a2a6df6914383