summaryrefslogtreecommitdiff
path: root/src/com/android/email/provider/WidgetProvider.java
Commit message (Collapse)AuthorAgeFilesLines
* com.android.mail.providers.Account contructors are no longer publicRay Chen2014-07-161-1/+1
| | | | | | and clients need to use Account.builder().buildFrom(...) instead. Change-Id: I7559540458ae549c399effc59392930ec914ffcc
* Show "To:<Names>" in sent and outbox index viewsJames Lemieux2014-03-311-1/+1
| | | | | | | | | | | | | | | | | b/13304929 The solution being delivered introduces a new folder capability: UIProvider.FolderCapabilities.SHOW_RECIPIENTS which indicates a folder should display "To: " in front of its participants list because it is a folder containing outgoing mail or sent mail (thus viewing recipients is more useful than senders). This capability is returned for Drafts, Sent, and Outbox. Note that extra work was required to make this function properly in the widget we export to the launcher. See BaseWidgetProvider and friends for details. Change-Id: Ie7b077b8dd8934182de5e94a90fa163e8105faac
* Fix a bad log message.Yu Ping Hu2013-09-261-1/+1
| | | | | Bug: 10950496 Change-Id: I06c5e20eea9090bbfc6d0c12d8ce8e31d47f52a2
* 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: I483d009fe3681ec3d4323b3ca95dff8ca9f4ffde
* Use resource strings for system folders.Andrew Sapperstein2013-06-261-1/+1
| | | | | | | | | Fixes b/9193813. Previously we returned a value from the database in all cases. This meant that system folders were not translated. Change-Id: Ife568651886bfb6de76221b8bc5d013dac8fa21a
* Clean up a bunch of warningsScott Kennedy2013-06-251-2/+2
| | | | | Bug: 9565838 Change-Id: I5e95562bbf463f057cbcc4a9884427a774473b45
* Return raw folder in respond().Andrew Sapperstein2013-05-231-22/+1
| | | | | | | | | | | | To get the name of the folder, we need the conversation cursor's respond method to return a Folder object. Now it does. Also refactored a getFolder method in WidgetProvider to be in EmailProvider so anyone can use it. Change-Id: I55ee180955ff4f4be7012ed6b5dda596e8e9d236
* Fix migration from Email1 to Email2 when using combined inbox.Mark Wei2013-04-191-0/+23
| | | | | Bug: 8578254 Change-Id: I2afb7e145664c1e6d10c0cfbf654d835fec8c9f1
* Exclude all inbox labels when we're viewing an inboxScott Kennedy2013-03-201-1/+1
| | | | | Bug: 8426563 Change-Id: I7707c9ebf9ebcb73be73ef82f5f2212514671bfe
* Make widgets work againScott Kennedy2013-03-071-2/+4
| | | | | | | | We can't send Folder parcelables to RemoteViews, so let's just send what we need: two URIs and a String. Bug: 8330949 Change-Id: Ic3f272e1bae4530cdc7776fd88eeb7bcb1a7dae3
* Move notifications to UnifiedEmailScott Kennedy2013-02-081-130/+14
| | | | | | | | | | | 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 Ibe2e3f93ec164370535ffc5f5b2409544cc8d36d (UnifiedEmail) Change-Id: Ie6ec389b5b5d2e7ab1b299d0877811ae716526e2
* Change "hide checkboxes" to "show checkboxes"Scott Kennedy2012-12-211-1/+1
| | | | Change-Id: Ie44dc65acab4ed94e8d7b3b26392872c4419a603
* Fix crash with Email widgetPaul Westbrook2012-09-181-1/+3
| | | | | | | | Make sure the projection is correct for the sparse account cursor Bug: 7029165 Change-Id: If25ee7718fcd2577320404145de26a859fd4de0a
* Add supplementary account info to outbound google.com linksMark Wei2012-09-051-0/+1
| | | | | Bug: 6661601 Change-Id: Ifae6d4a0f30c8233a1b51971168a19f1548718ca
* Make sure to respect the projection from the clientPaul Westbrook2012-08-031-1/+3
| | | | | | | | The combined account query wasn't respecting the projection from the client Bug: 6930416 Change-Id: Iecda9b08caf6bb3e68a0d1cf79496b3d32b4b54e
* Support widget changes in UnifiedEmailPaul Westbrook2012-07-251-44/+19
| | | | Change-Id: I48ed403a7f1d61607b70c3ef260cc1f903e27a1b
* Migrate legacy widgetsPaul Westbrook2012-07-231-0/+323
| | | | | | Bug: 6304532 Change-Id: I6a5cad036ec7d4746e396b580e4689c957a7ee18
* DO NOT MERGE: Move emailcommon2 sources to emailcommonMarc Blank2012-06-281-125/+0
| | | | Change-Id: I06df7e467cd2e0117df8b8db3ddc6ff9da13f1c7
* Fix widget updatesPaul Westbrook2012-01-091-0/+16
| | | | | | | | | | | | | Fix widgets that stop updating. If the Launcher got killed, the Email widget service gets unbound. When this happens the cursor loader for the widget is stopped. Since widget is relying on the loader to update the data, when the loader is stopped, the widget would never update. Now when email recognizes a change, it will send a broadcast intent, which will cause the widget service to be started, if it isn't. Bug: 5811810 Change-Id: Ia840e58f10e780b94440119662c2e48e7785c507
* Fix widget update to properly refresh.Ben Komalo2011-10-141-6/+6
| | | | | Bug: 5413224 Change-Id: Id66c7dc8aac8b5e24c7d5c5b1633c9c3ab981b15
* Hook account/mailbox picker to widgetTodd Kennedy2011-06-011-5/+6
| | | | | | | now when adding a widget to the desktop, you can pick the account and mailbox. Change-Id: Id3d2c21b349af58459304ac5a068402d67f4d0f7
* Remove widget viewsTodd Kennedy2011-06-011-1/+1
| | | | | | | | | | | | The new widget UX allows for a single display mode for the widget. This can be configured when the widget is added or at a later time during widget re-configuration. We don't have the configuration activity (yet). We first need to restructure the widget to take a single account / mailbox combination. Hooking up the configuration activity will occur in a future CL. Change-Id: I38a5796c44938a6abd0d2bb50ac77241cc86a497
* Use standard widget call backsTodd Kennedy2011-05-271-21/+25
| | | | | | | | | | Instead of overriding onReceive() and processing messages ourselves, we should be overriding the standard widget call back methods, onUpdate(), etc... Also added a deleteWidgets() method in the widget manager to maintain beter symetry between create & delete. Change-Id: Idc84bf220a1e14776a080cfee0b28df39f9a1450
* Refactoring widgetMakoto Onuki2011-02-081-811/+26
| | | | | | | | | | | | | - Moved to com.android.email.widget - Extracted nested classes to top-level classes - Some small clean-ups. - WidgetProvider and WidgetProvider$WidgetService are left in the original package to keep compatibility with honeycomb (3.0) release. This CL is supposed to be pure-refactoring. There should be no functionality changes. Change-Id: I37acaa24b6b488724750c0f33374b31fcc433f11
* Widget: Max out message count at 999+Andy Stadler2011-01-301-1/+1
| | | | | | Bug 3403158 Change-Id: I1daf0c62684bad83a69e19c39ffe1b8df899d077
* Add "tap to configure" text to widgetTodd Kennedy2011-01-261-11/+98
| | | | | | | | | | | If there are no email accounts defined, the widget should show a single string that allows the user to create a new account. Whenever there are changes to the defined accounts, the widget(s) will update their headers to ensure they are only displaying valid information. bug 3296594 Change-Id: I156c20cfc90692174297a2aededd85775e0ea196
* Only show messages from inbox for account & unread viewsTodd Kennedy2011-01-201-16/+7
| | | | | | | | | Use a sub-selection to limit the messages from the inbox. Also add a unit test to ensure the selections are working correctly. bug 3368613 Change-Id: Ia24ef6028ded27c69f982ecbc6b67f35f84d1b6d
* Revert string name changeTodd Kennedy2011-01-191-1/+1
| | | | | | to prevent churn for the translators, revert the string name change Change-Id: I22710d810a5f3602ccd53a9cb4d2f31edca572f1
* Merge "Dump widget state to bugreport" into honeycombMakoto Onuki2011-01-191-2/+33
|\
| * Dump widget state to bugreportMakoto Onuki2011-01-191-2/+33
| | | | | | | | | | | | This might be helpful someday... Change-Id: I5a9e0a2948c7ea9fa5c9a7da61d143c10dda7d9a
* | widget combined inbox view only shows messages in inboxTodd Kennedy2011-01-191-4/+13
| | | | | | | | | | | | | | | | | | | | instead of showing all messages (e.g. messages in drafts, etc...) the "combined inbox" view now only messages in the inbox folder. This is now identical to the "combined inbox" view available in the full email UI. bug 3368613 Change-Id: I0080b56cd2718a3dce82b279277c63c4f43e86dc
* | Update widget colours / assets according to specTodd Kennedy2011-01-191-4/+30
|/ | | | | | | | | | | * Modified font colours for read/un-read emails * Add chip colours when viewing mail from multiple accounts * Add calendar icon if message has an invite attachment * Update background of read/un-read emails bug 3351761 Change-Id: Id59573d25a6988e9e869335f95778aad28b43912
* Updating widget due to API changes.Winson Chung2011-01-181-1/+1
| | | | Change-Id: I8623c48e912330145cfd325c962574d322ccc6f0
* Don't show trashed messages in Starred mailboxMakoto Onuki2011-01-131-1/+1
| | | | | | | | | | Also show the *total* starred message count (excluding trashed starred) in the mailbox list, not *per-account* starred count. Bug 3346872 Bug 2149412 Change-Id: I2274f215f994b62280ac6138982b927cec22c677
* Cleanup WidgetProviderMarc Blank2011-01-121-7/+0
| | | | | | | | | * Remove STOPSHIPs * Don't use startService calls Bug: 3341494 Bug: 3342662 Change-Id: I46fd60db40cf3476255f1af795da0b2a4bc34a7e
* Fix broken widget display (typo)Marc Blank2011-01-111-1/+1
| | | | | | Bug: 3329906 Bug: 3342305 Change-Id: I1c1f2ae78ba86b28923d4fd9c7c390425de83af1
* Merge "Add logging for widget view switching" into honeycombMarc Blank2011-01-111-0/+5
|\
| * Add logging for widget view switchingMarc Blank2011-01-111-0/+5
| | | | | | | | Change-Id: I5e39ffffa0860fb43a503e4ec00ddad8003f5ef4
* | Remove STOPSHIP from WidgetProviderMarc Blank2011-01-101-6/+0
|/ | | | | Bug: 3335070 Change-Id: I838d5eeb795759da30946fbdb00fa3f0e4dbdb12
* Fix widget view switching with > 1 accountMarc Blank2011-01-071-10/+30
| | | | | | | * Add test case for view switching Bug: 3329906 Change-Id: I738bad118d7d7a8d2839fbd2a9fdc00af2af3153
* Put individual account inboxes in widget rotationMarc Blank2010-12-221-39/+104
| | | | Change-Id: If1fddc107d9934849bbf273a67dd1db9c2063d99
* Pixel perfect Email widgetMarc Blank2010-12-201-56/+129
| | | | | | | | | | | | | * Functionally correct and pixel perfect * All current assets in place Bug: 3292507 Bug: 3284201 Bug: 3135118 Bug: 3255036 Bug: 3252913 Change-Id: I8fa6752748c74b3a9789a3675da12f6c0c11975f
* Add null checks to investigate bug 3275738Makoto Onuki2010-12-151-0/+6
| | | | Change-Id: I55f83336c5059b7ea6234b9451c60c4c062fdb06
* Clean up initialization of statics in WidgetProviderMarc Blank2010-12-081-12/+12
| | | | Change-Id: I432126a6f403c4d2f280aef5545d1638371ac755
* Make widget open appropriate screenMakoto Onuki2010-12-061-4/+20
| | | | | | | | Widget should open MessageListXL on tablet. Bug 3253813 Change-Id: I5cfa63b571e443a0217bc9332bb4a76a039143ac
* Always return widget from onGetViewFactoryMarc Blank2010-12-041-5/+1
| | | | | Bug: 3250431 Change-Id: I161189b6cec2d2a1fe0e511c1e78390673efb0b9
* Wireframe email widgetMarc Blank2010-12-011-0/+577
* Formatting and assets are preliminary * Functionality correct * Needs cleanup, etc. Change-Id: I75051df93d233ef529a616c7a9efae403d320bd2