summaryrefslogtreecommitdiff
path: root/src/com/android/mail/widget/BaseWidgetProvider.java
Commit message (Collapse)AuthorAgeFilesLines
* UnifiedEmail: Fix Can't dispaly the email select folder after delete account ↵pezhan2016-08-241-1/+0
| | | | | | | | | | | and sign in again. The initialization mode of activity is incorrect. Modify activity's initialization mode. Change-Id: I52fa1192805ed81a512abecdfad13b0dc09b0a4e CRs-Fixed: 962675
* Changed widget style to Quantum.Rohan Shah2014-08-101-2/+0
| | | | | Bug: 16823227 Change-Id: I95338c08cc799596090002520976b240e5b94b9d
* Delegate Account creation to builder class.Ray Chen2014-07-161-1/+1
| | | | | | | Account contructors are no longer public and clients need to use Account.builder().buildFrom(...) instead. Change-Id: I8f072e893b49b64d962fa7a075e5c15364c4c05f
* Fix NPE with null cursorJay Shrauner2014-06-231-5/+7
| | | | | | | Check for null folderCursor. Bug:14589610 Change-Id: I32cedb8734c569e7472919a34c363816451b7388
* Show "To:<Names>" in sent and outbox index viewsJames Lemieux2014-03-281-14/+20
| | | | | | | | | | | | | | | | | 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: I2fa2394224ef3911992ab8d5cb67b05fdf5f3e85
* Get rid of Account#nameTony Mantler2014-03-031-1/+1
| | | | | | b/13249115 Change-Id: I5478b139cba9e3e37924c3af1c7a4f818a803fa3
* Make sure the widget gets reset if the folder disappearsTony Mantler2013-11-191-3/+2
| | | | | | b/10735037 Change-Id: I4b81282601901253a789a58c92eff4b99d0e4635
* Use string resource for widget provider nameTony Mantler2013-10-091-4/+9
| | | | | | b/11043157 Change-Id: Id55c457872f09b3e290037efefdd63845e5cd15e
* Add extra checks to widget to make sure it clears when the account goes awayTony Mantler2013-09-121-6/+5
| | | | | | b/10612187 Change-Id: Ica81e8f1a2a1e1c86a2d883e81888cb1966edddc
* More warning cleanupScott Kennedy2013-08-021-1/+0
| | | | Change-Id: I22970341bf11eb355aa495f61c022efb8db61bcb
* Use ViewFlipper to flip between account name and unread count.Mark Wei2013-08-021-2/+3
| | | | | Bug: 10074523 Change-Id: Id613e8a4439790de2ca56acd007300d66e9a63ea
* Widget refresh.Mark Wei2013-07-291-2/+2
| | | | | | | | | | Different fonts and alignments. Different header background. Todo: remove unread count and decide if we want to cycle between account name and unread text. Bug: 10074523 Change-Id: I85968446e135cc896c9f20dc049466cb8811e4fa
* Clean up a bunch of warningsScott Kennedy2013-06-251-1/+1
| | | | | Bug: 9565838 Change-Id: Ie3a380581e81c63aaa0764875c55bfdccd5f2b13
* Unconfigure widgets when switching sectioned inbox on/off.Mark Wei2013-04-291-0/+57
| | | | | | | Widgets configured to use inboxes that no longer exist will be unconfigured. Bug: 8599006 Change-Id: Iec5a5c83a0f0238898abc3ab333af34f9bb88e88
* Fix for Gmail widget NullPointerException. Instead, it will leave the widgetMark Wei2013-04-191-2/+3
| | | | | | | unconfigured. Bug: 8526785 Change-Id: If8c7923a9721d9d0bb161d5ebc1bc3350e6251dc
* Parse Folder out of intentScott Kennedy2013-04-101-3/+2
| | | | | | | | 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
* Exclude all inbox labels when we're viewing an inboxScott Kennedy2013-03-201-9/+16
| | | | | Bug: 8426563 Change-Id: Ib9256fcdb658cb3df9b67485f7768f75bb8b6539
* Make widgets work againScott Kennedy2013-03-071-55/+88
| | | | | | | | 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: I67bf7668d5eeef3f3b2e6225cf8697a4c5533f16
* Remove Folder string serializationScott Kennedy2013-02-261-2/+2
| | | | | Bug: 8274830 Change-Id: I2669aeb4565458f665becef2fdd4e40bc1fc0093
* prefs cleanupAndy Huang2012-11-071-22/+8
| | | | | | | | | | | | | | | | | | This is purely a refactor with no intended functional change. Start over with a new Persistence class. New name is MailPrefs. No relation to Gmail's Persistence class to minimize API confusion across unified vs. gmail stores and gmail vs email apps. So far the only consumer is the widget provider and the "what's new" version checker, so no support for account-specific prefs yet. Move all widget pref and "what's new" calls to MailPrefs. Bug: 7497168 Change-Id: I4008fb6c180067d10654391c5c8fa86e105db3bb
* Fix Widget flashing "No conversations." before conversations are loadedMark Wei2012-11-061-0/+3
| | | | | Bug: 7482412 Change-Id: Ice587dc2a4c04a83bfd17c2d4ecdbc328814ea63
* Fix some SharedPreferences issuesScott Kennedy2012-11-021-8/+8
| | | | | | | | In I7b11bd0d17e6cc184b67c8c943531146fc964b49 and I06330423736835af397e3dbd000ecdcf33c14eef, I caused some prefs to sometimes use a file with the wrong name. This should fix that. Change-Id: I417805029e489c96dd0671d64ec825383a473b0b
* Fix NPE in widget.Mark Wei2012-11-011-9/+9
| | | | | Bug: 7440556 Change-Id: I5dec5ebfd2d318abded85393686c9ab0ee73f415
* Serialized strings are faster than jsonMindy Pereira2012-07-301-10/+2
| | | | | | | | Also, cleaned up/ reduced the number of Folder methods that do the same exact thing. From ~24ms to ~12ms/conversation now AKA in half AGAIN Change-Id: Ibdc67fe94d66ce32d933b4e18e9581d8c71d9974
* Move common logic to UnifiedEmailPaul Westbrook2012-07-251-1/+32
| | | | | | | | Fixed a case where if the loader returns a closed cursor, we don't keep a ref to the old cursor Bug: 6870201 Change-Id: I90ca79d4e7e2ec40e040f7d2ef72f155420a4e6a
* Allow subclasses to change how the Account object is returnedPaul Westbrook2012-07-211-14/+21
| | | | Change-Id: Ied420340cd2f96d8ac14e3b644d8c3df6b472c61
* Fix Monkey NPEPaul Westbrook2012-07-201-0/+5
| | | | | | | Prevent a crash if a null account is passed to updateWidget Bug: 6850961 Change-Id: Ia2467d09f31e37be62ca4a523e9318b2933023a1
* Restructure the widget codePaul Westbrook2012-07-191-116/+53
| | | | | | | This restructuring allows us to better use inheritance to change behavoiors when needed Change-Id: If2ad88d33437b87b8a54f3edf082e5ee812d20da
* In reference to messageMindy Pereira2012-07-101-1/+1
| | | | | fixes b/6292922 "Reply by gmail / Forward" options in Gtalk search doesn't populate the data for To:, From:, subject & quoted text Change-Id: If453783f56ebffad02630ba8d949ed1bbbf43532
* Changes to support different Log tagsPaul Westbrook2012-06-251-1/+2
| | | | Change-Id: I7121fbf7132444fc0f5c0c130373e3f2d1a3cf7a
* Cherry pick from jb-devPaul Westbrook2012-05-311-2/+11
| | | | | | | | https://android-git.corp.google.com/g/185790 https://android-git.corp.google.com/g/185965 This makes sure the task stack is correct from the widget Change-Id: I595139a1601777e559a322fa71a8a2efc12ae2a9
* Support widget notification per folder and utility methodMarc Blank2012-05-231-4/+32
| | | | | | * Needed by EmailProvider to make notifications more efficient Change-Id: I13961cde8fb4919b7e942d42482eeb9a918c844d
* Allow for deleted accounts/folders in onUpdateMarc Blank2012-04-231-16/+18
| | | | | | * Prevents NPEs in these cases Change-Id: I70f1f8732a589d7caf3b6cc1f9523b0c79e2dba8
* Enable all widgets to be updatedPaul Westbrook2012-04-091-14/+19
| | | | | | | Allow extending widgets to specify the ids of the configured widgets Change-Id: I617e8c79db453031e1e49322493aee0189947a8c
* Gmail will override the base widget provider so we can do folder syncing there.Mindy Pereira2012-04-071-44/+27
| | | | | | | Fix bug that when you create a widget for a folder other than the inbox, it doesnt load that folder. The loader for inbox was overriding the folder set in the intent. Change-Id: I3c0aeed54421ee73339ca5144b18f119d8436d78
* Add shortcuts for email/ gmailMindy Pereira2012-04-021-1/+1
| | | | Change-Id: Id040760a5fa27d85f535f28a293df1a7ad98582a
* Rename AccountCacheProvider -> MailAppProviderPaul Westbrook2012-03-221-2/+2
| | | | Change-Id: I7d1079ab2a48c5c845dee2ceff281bdf00c70b0f
* Fix the null URI versus "null" versus Json.NULLVikram Aggarwal2012-03-131-1/+1
| | | | Change-Id: I51d3683d6c0f637689aded58bba95fdec9dbe8ce
* Make sure we specify the account in the extras for composeeMindy Pereira2012-03-061-0/+1
| | | | Change-Id: I1de7d894465c57a3e33fdb33f87cddda31946a3a
* Use intent to determine if we want to open the conversation list or ↵Mindy Pereira2012-02-291-1/+1
| | | | | | conversation. Change-Id: Ic334d81ac4c3a81bb4ab457851dbbe6bbce297fb
* Setup compose intent.Mindy Pereira2012-02-281-3/+3
| | | | Change-Id: I2eb09bee0d56efa91c31d809013edab6b30468bc
* Store URI's in Uri instead of String.Mindy Pereira2012-02-281-7/+7
| | | | Change-Id: I5492a61b80442afc7cebc5b3d560688aebae8820
* Add launch intent for viewing a conversation from widget.Mindy Pereira2012-02-281-22/+46
| | | | | | Also cleans up some cursors properly; these issues were caught by strict mode. Change-Id: I632dbd3a9b170711e3b5740afc919e6b37be51e6
* Implement serializable methods for folder/ account.Mindy Pereira2012-02-231-2/+2
| | | | | | | Can't use custom parcelable objects in PendingIntents, but re-querying for the account/ folder is a waste in the widget. Change-Id: Idbf52bf36c82928d63cfdfe1d111c25af00fb814
* Show the list of conversations for the folder selected in the widget.Mindy Pereira2012-02-231-71/+66
| | | | | | | | Going to take a cleanup pass after this is in and move things off the UI thread, see if I can pass parcelable objects via remote views (seems like I can't), or see if I can get away with just having a folderuri. Change-Id: I28aaee942cef963a88043bb355ad1a21fdfc5f21
* This CL makes the widget launch correctlyMindy Pereira2012-02-231-17/+10
| | | | | | Allows the user to select an account and a folder. Change-Id: I7760995166cff7db25264c2cc330bc394c984113
* Move over resources and files for the widget.Mindy Pereira2012-02-231-0/+336
This renames/ moves over styles and drawables for the widget as well as xml files and classes. Doesn't do much right now except display a unified email widget in the widgets selection area and then say "app not installed" when you drop it. But its a start! Change-Id: Ie2759ce0adf520bd65222b50ddc8ab14c6659a37