summaryrefslogtreecommitdiff
path: root/src/com/android/mail/ui/FolderSelectorAdapter.java
Commit message (Collapse)AuthorAgeFilesLines
* Update Change Labels to Quantum DesignRohan Shah2014-08-211-8/+3
| | | | | Bug: 16054906 Change-Id: I53aecf63585b099e62e20a3ec2eb5f8c65756357
* Change Move To Dialog (Quantum)Rohan Shah2014-08-201-1/+8
| | | | | | | | Added folder label drawables to move to dialog (single folder selection) and removed dividers out. Bug: 17073025 Change-Id: I491577d126d9d4d6a328e1392b6f1975217397eb
* quantum change labels b/16054906Andrew Sapperstein2014-07-031-49/+7
| | | | Change-Id: Ieb8ef93f9ce6eb784a3f2c3343286e0666bb31de
* Fix bug with omitting checked system labelsJin Cao2014-06-231-2/+2
| | | | | | | | | | | | | Since we now no longer need to manually sort the selected labels to top of the list since we have separate section for selected and unselected labels, we can remove the check for isSelected when adding system labels in their default order before calling folderSort. This bug was causing selected system labels to not appear under the systemLabels list AND nonsystemlabels list, therefore it was missing completely in the dialog. b/15777487 Change-Id: I14ba2872f87d1c9baed7e9143c8b7e8219f33c45
* Properly check for empty UriJin Cao2014-05-291-1/+2
| | | | | | | | | | Uri == Uri.empty doesn't work. Changed all uses of Uri == Uri.empty to Uri.empty.equals(Uri). Refactored the function into a helper function inside Folder to check if a given folder is top level. b/14987117 Change-Id: I22b7a0bf7fbfcbd14936e5ff9b428fd3f4c15e60
* Properly uncheck folders in selection dialogJin Cao2014-05-191-29/+22
| | | | | | | | | | | - Properly check isAdded flag to check/uncheck folders from savedInstanceState. - Rename isPresent -> isSelected for FolderRow for better consistency. - Remove isSelected from ordering because we now add the originally selected folders in a different section of the adapter so that they are always on top. - Add section headers for the initially selected folders and the rest. b/9174917 Change-Id: I0f063e9280312a1c2a9c76e604e6a9f799f72822
* Skip sorting for system foldersJin Cao2014-04-071-8/+12
| | | | | | | | | | Leave system folders in their default positions for now because UI sorting currently does not have enough information to place them in the correct order. b/13792490 Change-Id: I96828d58524ed5e8c07ffb58b6f1ae72835cbbff
* Make sure we don't create and drop orphans when sorting folders by hierarchyTony Mantler2013-09-271-21/+28
| | | | | | b/10951485 Change-Id: Ia207516d60c80da6391a4cff678ef26dc45c65e3
* Sort folders according to their hierarchy.Tony Mantler2013-09-241-18/+144
| | | | | | b/10825810 Change-Id: I27ad5ee75df669315e03c9ccc299bfc8eacbb53b
* Lazily load the FolderUri's comparison UriScott Kennedy2013-07-161-1/+1
| | | | Change-Id: I2fe3611850d1375501a5ee379b789ab937f89382
* Add a new FolderUriScott Kennedy2013-07-161-1/+2
| | | | | | | | 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
* Change FolderType to a bitmaskScott Kennedy2013-03-201-2/+1
| | | | | | | This allows one folder to have multiple types. Bug: 8426563 Change-Id: Ide918a884cfb76022f3c03f5cc69adb149a964cc
* Fix for the SingleFolderSelectionDialogPaul Westbrook2013-03-141-3/+3
| | | | | Bug: 8370675 Change-Id: I16318433580dd3cf0ae32fc23796caf6bfbb4f66
* Preliminary sectioned inbox supportScott Kennedy2013-02-281-1/+1
| | | | | | | | Add basic support for sectioned inbox. This does not include the teaser view or other less important UI features. Bug: 7685676 Change-Id: I2cba26dc4acc1021f5b8ab0ca81d4e0a65f744a8
* Lots of fixes to move to folder dialog.mindyp2012-09-181-20/+45
| | | | | | Fixes b/6919987 bring back divided "move to folders" sections Change-Id: Ia7d709c5cd1f8787e2e1083442aa4eaf50d6babb
* Label list lists user labels lastVikram Aggarwal2012-09-181-6/+23
| | | | | | | | | | | | | Add the system and checked labels first, and sort them. Sort the user labels and add them at the end. This enforces the following order: Checked labels (sorted alphabetically) System labels User labels (sorted alphabetically) Fixes b/7185158 Change Labels list has built in labels listed last Change-Id: Ie2b11d1ad0db5a43600427d6df57f30cd5b87ec1
* Feature neutral code cleanupVikram Aggarwal2012-09-181-28/+24
| | | | | | | In preparation for fixing b/7185158: Change Labels list has built in labels listed las Change-Id: I17bea019c5406ac7e97f54e13295bda968814569
* Check that we can move to first before making folders.mindyp2012-09-041-9/+10
| | | | | | fixes b/7079467 RTE in Gmail: Caused by: android.database.CursorIndexOutOfBoundsException: Index 0 requested, with a size of 0 Change-Id: I5c5051d89e57fd5eed126891f636df90db6bca37
* Unread counts in ActionBar accounts.Vikram Aggarwal2012-07-301-1/+1
| | | | | | Fix b/6392082 Change-Id: I25b0c1ea0faf27519fca96fafc66644a2bb36be0
* Make it possible to have headers for just some sections.Mindy Pereira2012-07-171-5/+54
| | | | Change-Id: Id9a8ab1099d2675cc01d42d3f08e041eba232644
* Show the icon in the correct place.Mindy Pereira2012-06-271-10/+9
| | | | | | It was being put in the colorblock, leading to a weirdly sized fuzzy thing. Change-Id: I5abb277372d9951813d8eca31de461cb8f8371a4
* Truncate hierarchical folders.Mindy Pereira2012-06-261-0/+3
| | | | | | | TODO: still need to add truncation logic: if the area isn't big enough: 1 ellipsize end, 2 remove the direct parent and leave the ancestor Change-Id: I4f1e588c5161ee3c242373f53738680ea7ae3ef1
* Whoops off by one.Mindy Pereira2012-06-261-2/+2
| | | | | | Was skipping the first folder in the list. Change-Id: Iec8d53bc639c04868e83b1366cad042736f76071
* Create a sectioned move to dialog for folders.Mindy Pereira2012-06-261-7/+15
| | | | | | | | | | | | | | | Part 1: make it possible to have section headers and sections that consist of folder adapters. 1) for system 2) for frequently used 3) for all right now, just repeats the same full folder adapter for all. The next CL will make 3 diff FolderSelectorAdapter subclasses: 1) system only (added to this cl) 2) frequently (and hierarchical) 3) all (and hierarchical) Change-Id: I7cceb35a6940180461d75186e8430a2340da2222
* Filter folders in FolderSelectorDialogPaul Westbrook2012-03-281-3/+11
| | | | | | | | Don't show folders that can't accept moved messages or trash folders in this list Bug: 6245761 Change-Id: I299f8baa78352c0b7c2ff6da87352200d71541a3
* Get rid of second id for folders.Mindy Pereira2012-03-131-1/+1
| | | | | | Use the uri to compare two folders. Change-Id: I95c63190ec3a467b0b792f8c8104b6a69fa4b8c7
* Remove all label refrences from unified; change to folderMindy Pereira2012-03-091-1/+1
| | | | | | Remove labels text views from unified mail conversation list items. Gmail will override with a new xml file that will provide a "folders" area Change-Id: I443b8d73f253f046dfa8a8a68afa19e89bf7a85a
* Show folder color (if it exists) in the folder items.Mindy Pereira2012-03-081-6/+3
| | | | Change-Id: I437d800af98a1be6bf1e56746f70f9fb77a16ca3
* First implementation of recent folders.Vikram Aggarwal2012-03-051-1/+1
| | | | | | | | | 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
* Make sure we check the correct initial folder(s)Mindy Pereira2012-02-141-2/+1
| | | | Change-Id: Ie728111edbcfae0ce6bc85dfefe6d2188f730485
* Make sure we check the correct initial folder(s)Mindy Pereira2012-02-131-3/+1
| | | | Change-Id: Ib6881dbf5927d655dc1c7dd1bb2a53d7384303af
* Cleanup/ refactor apply/remove folder dialogs.Mindy Pereira2012-02-071-15/+16
| | | | Change-Id: I807c85fd6f617d02f8a2a550774efdadf64a4bb7
* Setup multi folder select dialog.Mindy Pereira2012-02-071-0/+147
This is a first pass; I expect to be doing a LOT of cleanup. Change-Id: I5a478781776a47530c5f7862071dec829b585fbf