summaryrefslogtreecommitdiff
path: root/src/com/android/mail/ui/RecentFolderList.java
Commit message (Collapse)AuthorAgeFilesLines
* Prevent rare NPETony Mantler2014-10-161-2/+2
| | | | | | b/18017065 Change-Id: I3f6c8bfcd0650adc32a601120f3dfade23eff0cc
* Get rid of Account#nameTony Mantler2014-03-031-1/+1
| | | | | | b/13249115 Change-Id: I5478b139cba9e3e37924c3af1c7a4f818a803fa3
* Allow going back to search resultsScott Kennedy2013-09-041-2/+3
| | | | | | | | | | | | If you went from search results to conversation view, then hit the back button, we were taking you out of search results to the inbox, because we didn't know you had search results. Now, we're tracking this (through the use of a folder type), so we take you where you should go. Bug: 10591438 Change-Id: I06c38c84f62016a6b3f52f44d78c3b451e4c6a29
* Add a new FolderUriScott Kennedy2013-07-161-9/+11
| | | | | | | | 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 track system folders in recentsScott Kennedy2013-05-281-0/+6
| | | | | | | | We filter them out from displaying them, so we should filter them out from tracking as well. Bug: 9169472 Change-Id: I4dbecf4dda7a5a6e2918a9d29a428cffb929fe88
* Create FolderObserver similar to AccountObserverVikram Aggarwal2013-03-141-5/+4
| | | | | | | | Reduce code duplication. The FolderObserver calls the onChanged with the new folder, removing the need for every observer to call controller methods to get the current folder. Change-Id: Ia36b4f59676d9b30d39cf2c0cabd2ab1d260f450
* Loaders that create objects in the backgroundVikram Aggarwal2013-03-111-3/+5
| | | | | | | | | | Create Folder objects in the background. This frees the UI thread after onLoadFinished is called, since the object has already been created. Bug: 8315641 optimize AbstractActivityController's loaders Change-Id: I1f4b2f679cf99a9193d88cb6b9a5aa77b33d6ea9
* fix recent labels leaking across accountsAndy Huang2012-11-131-1/+1
| | | | | | | Clear the recent labels LRU upon account switch as intended. Bug: 7538377 Change-Id: I26f81e46815db9f01dec195a4751c7d730e0404a
* Fix empty recent foldersVikram Aggarwal2012-11-051-3/+8
| | | | | | | | Plus, avoid restarting the loader twice (setAccount already does this). Bug: 7203516 Gmail: no recent labels shown Change-Id: I8d108094a850bfae893782529d9dce0257fdb884
* Update recents on label changePaul Westbrook2012-09-071-9/+40
| | | | | | | | Also, make sure to take into acocunt when the folder was added to the recent folder list when pruning the list Bug: 7118709 Change-Id: I4db0fec88060be4c4b18bb38d0885f16d12d26dc
* Use sectioned lists only on two pane.Vikram Aggarwal2012-09-041-0/+1
| | | | | | Fixes b/7102332 Creating a widget crashes in FolderListFragment Change-Id: I66616725d954a4e9e28f237fb1f52ce82d488afa
* Folder list fragment by sections.Vikram Aggarwal2012-08-311-4/+4
| | | | | | | | | | Known issue: the recent folder *and* the user folder is highlighted when selecting a recent folder. A change is being prepared to fix this. Fix b/7074104 Change-Id: I82733bc6be105c6270d17f3c1a281fd4ec15a48a
* Fixed crashPaul Westbrook2012-08-241-1/+4
| | | | | | | Don't use a cursor if we failed to seek to a valid position Bug: 7056600 Change-Id: Id3fe597c2c12ea6e35919619be73628403488a6a
* Always show the most recent foldersVikram Aggarwal2012-08-241-11/+16
| | | | | | | | | | | | | | | | | | 1. Alphabetically sort the recents just before returning them, to ensure that the most recent value is always in the list. 2. When reading from the UIProvider, read the last value first. This ensures that the most recent value is always in the cache. 3. When creating the LRU cache, keep extra space in case folders are to be discarded: current folder and possibly the default inbox. 4. When reading from the UIProvider, read all values, not just the top ones. This ensures that dupes are correctly handled. Fix b/7041947 and other issues not yet filed. Change-Id: I2e032893188598cf34ccbe61e46bde31da010069
* Get the Account through a listenerVikram Aggarwal2012-08-141-4/+32
| | | | | | | | | | Every object that needs an account gets it from the ActivityController by registering for future updates. This should reduce some of the headaches with account objects going out of sync. Fix b/6969950 Change-Id: I0449b482ecd84bdb947304db5f0504c77dd1dc7a
* Request default recent folders.Vikram Aggarwal2012-06-141-6/+6
| | | | Change-Id: I2aa6b695958fc20864d07c02be4251ef203c3fa6
* Minor change to improve readabilityVikram Aggarwal2012-06-111-2/+3
| | | | Change-Id: I75ef0f51f45927d499e658d5cdb9e5f487045316
* Minor fixes and nulls are not propagated.Vikram Aggarwal2012-05-091-1/+2
| | | | Change-Id: I33109d7074268721c1879fcece66b4e9e05573bd
* Always read settings from the accountVikram Aggarwal2012-05-081-8/+6
| | | | | | | | | | | Since settings are a member of the account, read them from the account directly rather than keeping a copy. Also, stop passing Settings if we can pass specific values within them to limit the visibility of the class. (Nobody likes settings...) Change-Id: I0b4ee83f7396c9205169e89838e0121ee17232f5
* Read defaultInbox through a safe accessorVikram Aggarwal2012-05-071-3/+3
| | | | | | | | Precusor to cleaning up the Settings and propagating Settings through the entire app. On the road to fixing: b/6303321 Change-Id: Ibe3aaf7eb0c0a4a02af741589c32b5c1e8261890
* Destructive Actions. Part 1Vikram Aggarwal2012-04-231-2/+2
| | | | | | | | | 1. Change ActionCompleteListener to DestructiveAction. 2. Call OnePane and TwoPane objects DestructiveActions instead. No functionality change. Change-Id: I492de83bc9e49948a4dabcfc5e8438220339fc46
* Update consumers on changes to SettingsVikram Aggarwal2012-04-191-1/+1
| | | | Change-Id: I96ed21a16c0dfb290198d2236fee8d21e299ec31
* Don't require recent folder list for accountMarc Blank2012-04-161-1/+2
| | | | | Bug: 6322936 Change-Id: I985c583628a1583e4a666a1d4dba4392e6d1bb11
* Fix loggingPaul Westbrook2012-04-041-2/+2
| | | | | | | Some string need to be passed in as format parameters Bug: 6292050 Change-Id: I5bcf397a5de4a35d33f2b994294f682ea8942e76
* Pass current Account when "touching" a folderMarc Blank2012-04-031-4/+8
| | | | | | | | * Prevent cases in which mAccount isn't yet set in RecentFolderList (this causes "touch" to fail, and notifications to stay up entering a folder from notifications) Change-Id: I6c3910218d4f61a5b2845db363941c13f7d9ca0c
* Do not reset the recent folder list on folder access.Vikram Aggarwal2012-03-271-5/+15
| | | | Change-Id: I76dafa896d63f46cfd7f91cb1393560e70443b5f
* Set account before setting folder when using touchFolderMarc Blank2012-03-211-0/+4
| | | | | | * Also, prevent NPE in StoreRecent Change-Id: Ied4e30bef3265808ebab802795ab8938b09e1d10
* Clean up RecentFolderList; exclude default inbox for accountMarc Blank2012-03-211-35/+43
| | | | Change-Id: I6ed600a88fa0ada2a8367090cda036b74b0c7fe6
* Fix recent folder list logic and simplifyMarc Blank2012-03-211-50/+34
| | | | | | * Save only one folder at a time, as touched Change-Id: I4bb8a242535ee5dfbde4d259f2686463f2f17597
* Get rid of second id for folders.Mindy Pereira2012-03-131-4/+4
| | | | | | Use the uri to compare two folders. Change-Id: I95c63190ec3a467b0b792f8c8104b6a69fa4b8c7
* Fix the null URI versus "null" versus Json.NULLVikram Aggarwal2012-03-131-2/+3
| | | | Change-Id: I51d3683d6c0f637689aded58bba95fdec9dbe8ce
* Make sure StoreRecent references correct accountMarc Blank2012-03-121-2/+4
| | | | Change-Id: I7ba7ca4d5ccf18ec33986970b9ebb779f88ba84c
* Read RecentFoldersList through a loaderVikram Aggarwal2012-03-121-22/+37
| | | | Change-Id: I7608815f82a925e7dfd0576539296fbe87631b56
* Store recent folder list in the AbstractActivityControllerVikram Aggarwal2012-03-091-14/+17
| | | | Change-Id: Ie557cf4e67b55c238c323063e3211117c6d101b3
* Again, get sync() off UI threadMarc Blank2012-03-081-4/+4
| | | | Change-Id: I5c72180bebcab1ca66b44e340e768aec3ae6b03a
* Expect a folder when doing a search query.Mindy Pereira2012-03-081-1/+4
| | | | Change-Id: Ia6d7b5a11e26af3eabbfc8fa94fc20a9ce5ba8de
* Modify UiProvider to save recent folders and read them in the spinner.Vikram Aggarwal2012-03-081-8/+67
| | | | | | | | | | Things to be done: 0. Use a loader rather than running a query on the main thread 1. Touch folders only when a conversation in the folder is opened, not when the folder is opened. 2. Recent folders for exchange/pop/imap. 3. Tablet label list fragment with recent list. Change-Id: I9a57c90d48430e865f6fca8b70619fa5e8eb3360
* First implementation of recent folders.Vikram Aggarwal2012-03-051-0/+102
Things still to be done: 0. Modify the UiProvider to include recent folders in the provider contract. 1. Save/Restore the recent folder list by delegating to the provider. Change-Id: Ie36566d93bb95b35375498caeef16fa4559e85d6