summaryrefslogtreecommitdiff
path: root/src/com/android/mail/MailIntentService.java
Commit message (Collapse)AuthorAgeFilesLines
* Fix NPE when folderUri is null.Milos Stankovic2014-10-151-3/+6
| | | | | | | | | | NotificationUtils expects null, not FolderUri that is holder for null uri. b/17996549 Fatal null pointer exception when removing an account from the device Change-Id: I842950a055cbca8ea93c9803c99494425277e683
* Redo Notification Tagging (UnifiedEmail)Rohan Shah2014-10-061-2/+2
| | | | | | | | | Deals with notification tagging - we no longer need the contact lookup uri info - We only need the sender address to create an uri. Bug: 17577629 Change-Id: I41cedfecbeaffadec2273ddaafdad1bc098a06b2
* Tag Notifications with People (UnifiedEmail)Rohan Shah2014-09-101-9/+9
| | | | | | | | | | Use addPerson with notification compat builder to tag notifications with contacts. Default to using a ContentResolver if the ContactLookupUriFetcher is null. Bug: 15385612 Change-Id: I2ce5fe90d77dd5d0f9b5cc5aeebef069b3b5fa19
* Set the package name when starting MailIntentServiceMartin Hibdon2014-09-081-0/+1
| | | | | | b/17414038 Change-Id: If30a6cd0c3117b59bae799eaf8dc6517a2638391
* Better user experience for Gmail wear users.Alan Lau2014-06-101-2/+18
| | | | | | | | | | | | | | | * 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
* Allow alternate sources for contact images.Andrew Sapperstein2014-05-281-2/+25
| | | | | | | | | | | | | | | | | | | | | | Makes some classes that overridable in order to provide alternative implementations: ContactResolver, ContactResolverTask, ContactLoaderCallbacks, and ContactPhotoFetcher all can be subclassed to provide new behavior. Also added hooks in ControllableActivity and MailIntentService to override building these classes. NotificationUtils was also updated to force all calls through MailIntentService which can be overridden. Finally, moved the BitmapCache used in conversation list to the activity level instead of at AnimatedAdapter-level (which is effectively fragment level). This speeds up subsequent queries for images dramatically. We reset the cache when changing accounts. b/11387812. Change-Id: Ie70d800862b073163ccbfa5295d6950e57d64009
* RTL - get new BidiFormatter on locale change.Andrew Sapperstein2014-03-041-6/+3
| | | | | | Fixes b/13026665. Change-Id: I5ec05c39113fbc03134d7769e91145ba2aedac61
* analytics: mark-read/unread, notification dismissAndy Huang2013-08-281-0/+6
| | | | Change-Id: I2fffd03f1d147b5ddea0733fe449a76d2fba989d
* Add a new FolderUriScott Kennedy2013-07-161-1/+4
| | | | | | | | 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
* Fix up some notification cancelling codeScott Kennedy2013-05-221-1/+1
| | | | | | | | | Add a method to cancel all notifications for one account, and ensure that cancelling Folder notifications actually cancels the notifications. Bug: 7935576 Change-Id: I5d35665efdfe98a2a63692a00b2e5567d6d482a4
* Remove MARK_SEEN actionScott Kennedy2013-05-051-5/+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
* Resend notifications after an inbox type changeScott Kennedy2013-04-291-6/+1
| | | | | Bug: 8737525 Change-Id: I24b5c5a745cb94a3a93c423b7395cad8eed6d665
* Resend notifications for undone account-folder.Andrew Sapperstein2013-04-231-1/+5
| | | | | | | | | | 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-5/+4
| | | | | | | | 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
* resolved conflicts for merge of affaa308 to jb-ub-mail-ur9Vikram Aggarwal2013-02-211-0/+9
|\ | | | | | | Change-Id: I4f92c0fe792eba761183a25da980d38154d1afc0
| * Recognize low disk, and propagate the appropriate error codeVikram Aggarwal2013-02-211-1/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | If the device gets in low disk space mode, Gmail sync will potentially never succeed till the device recovers from this mode. In such a case, propagate the appropriate code up to the UI so it can accurately message the user. This is Unified Email's half of the code, where we actually set the storage_low/storage_ok state. Bug: 7662097 Low Disk causes "No connection" dialog in gmail Change-Id: I08004aad821b6c4f17ed6179e04726df9ec1b8b4
* | Move notifications to UnifiedEmailScott Kennedy2013-02-071-1/+42
|/ | | | | | | | | | | | 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
* Archiving conversation from notification should mark it seenScott Kennedy2012-12-211-2/+3
| | | | | Bug: 7901223 Change-Id: Iebc2010ae0f489fd6955c88a1d32df94baa9ce68
* Remove an unused extraScott Kennedy2012-12-211-1/+0
| | | | | | | This is no longer needed, as all references were removed in I51790b1fe633baef5b9edae2e31ac76cb8d3eae1 Change-Id: Ie6467df1b90055e3601af11342008a31aa699147
* Remove notifications on reply/forward actionScott Kennedy2012-12-171-0/+46
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