summaryrefslogtreecommitdiff
path: root/src/com/android/mail/ui/AccountController.java
Commit message (Collapse)AuthorAgeFilesLines
* Add Account/Folder change observer to AccountController interfaceTony Mantler2014-07-071-9/+2
| | | | | | b/16131478 Change-Id: I4fa9fe3fdb4edcf1e2d4d551d5d93f6301bc1eae
* Fix hierarchical FolderListFragmentsScott Kennedy2013-05-301-0/+7
| | | | | | | | | | | | | | We were never using most of the args we set. There are multiple active FLFs (drawer and subfolder). Both of these are notified of folder changes, and then they check if that folder exists in their cursor. If not, they switch you back to the account's default inbox. However, the cursor for the drawer only has top level folders, so this breaks. Now, we have a full folder list cursor in each FLF, and this is used for that check. Bug: 8575001 Change-Id: I47f17fb9c5d108b2388db5ba918f6413a018b414
* Only pop the user to the inbox when the drawer is enabledScott Kennedy2013-05-021-0/+5
| | | | | Bug: 8788742 Change-Id: I97130b088956a25617e55f5454e980034461ce4a
* Start the conversation list load earlyVikram Aggarwal2013-05-011-1/+2
| | | | | | | | Using a hacky boolean to keep state. Will switch to listening to drawer state in a subsequent CL. Bug: 8743683 Latency when switching accounts/folders Change-Id: I94930b1886cd57c33cc1fa1e851aba0d1ebaa4d3
* Get inboxes from the folder watcherVikram Aggarwal2013-04-291-0/+6
| | | | | | | | | | | 0. Create a folder object in the watcher, off the UI thread. 1. Pass the folder watcher back to the controller 2. Get the inbox folder directly from the watcher. 3. If that fails, revert to the existing logic. Bug: 8743683 Latency when switching accounts/folders Change-Id: I36baaab675ff65b43ce5ab1ad3485259a700ce1f
* Close drawer when not changing foldersRohan Shah2013-04-291-1/+3
| | | | | | | | Drawer should close upon clicking the currently selected folder or clicking the current account while viewing the inbox. Change-Id: I1f4827e9386289172ea3b1137c393dd1d6fc587c
* Remove drawer jank and load less aggressivelyRohan Shah2013-04-221-0/+17
| | | | | | | | | Added an observer that only allows account/folder changes to continue once the drawer is closed to avoid jank/awful fps that we saw before. Bug: 8661186 Change-Id: I859882b40a8cdf86d0b825eb7e4203b4e3516ecd
* Properly implement clicking active account.Andrew Sapperstein2013-04-191-0/+5
| | | | | | | | | | | | Fixes b/8656442 while preserving fix of b/8470761. Instead of reworking changeAccount, we now have a second method called switchToDefaultInboxOrChangeAccount which is called by FolderListFragment. It does the folder-switching specific code before going into changeAccount. changeAccount is now back to its original code which is also run when you open from a widget or notification. Change-Id: Ib4b6f68e7464e947028cc870625fe6a9d8afe00e
* Remove unused interface and rename methodVikram Aggarwal2013-03-131-1/+1
| | | | | | | | changeAccount(account) is more indicative of its purpose than onAccountChanged(account) which suggests that the account has *already* been changed. Change-Id: I7dd780e16b6a238814748bb429113dfe1069d9aa
* Ugly first cut of putting accounts in the FLFVikram Aggarwal2013-03-131-0/+22
| | | | | | | | | | | | | | Things to be done which will be checked in soon: 1. Removing some of the ugliness around using a FolderItemView. 2. Reducing the amount of boilerplate when registering observers. 3. Pictures on the accounts? 4. Unread counts on the accounts. 5. Selected state on the account per UX spec. 6. Collapsing the existing list and expanding new list as per UX spec. This is a known ugly solution to unblock the effort of others. Change-Id: I8659232ce5508c9f766e5e8da69e21ad9ec24f32
* Allow veiled address pattern to be updated through settingsVikram Aggarwal2013-01-091-0/+7
| | | | Change-Id: Ibbd412308283fd2c0cae0abbec0a43be1db1b3ad
* Get the Account through a listenerVikram Aggarwal2012-08-141-0/+46
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