History log of /packages/apps/Email/src/com/android/email/activity/MailboxFragmentAdapter.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
bc47398187c6ffd132435e51d8d61e6ec79a79db 25-Sep-2012 Paul Westbrook <pwestbro@google.com> Merge Email1 into MR1

Change-Id: I45289d46b65faffc7a3a3dd46382899162f3aaab
/packages/apps/Email/src/com/android/email/activity/MailboxFragmentAdapter.java
cc0185f07c9198008d8dc685ae9979f3e35e8539 28-Jun-2012 Marc Blank <mblank@google.com> Manual merge of Email from jb-ub-mail

Change-Id: I564ddf433d371f45ba78a10f73bb182d484c56f2
/packages/apps/Email/src/com/android/email/activity/MailboxFragmentAdapter.java
4c49b4a2205da555c93e7d506af0d71218690039 08-Dec-2011 Marc Blank <mblank@google.com> Use LOCALIZED collation for mailbox names

* Our mailbox sort order varies from that of other clients due to
our not having used LOCALIZED collation

Bug: 2347066
Change-Id: I334feb9fa5690118401e2fe2b4a767eb3f29b25f
/packages/apps/Email/src/com/android/email/activity/MailboxFragmentAdapter.java
6fc728b7cd963ef7ed1e6d8749cd50ccd9b24f38 18-Nov-2011 Mindy Pereira <mindyp@google.com> ListView eill always show dividers below items if all items in the adapter are enabled.

It seems like it should not show a divider on the last item when there are headers
OR infer not all items enabled when there are headers, but it doesn't.

Fixes b/5517092 extra divider line between last label and next header in label list

Change-Id: Ib0f0361e672edcc36c973166c062b67e61ec59c4
/packages/apps/Email/src/com/android/email/activity/MailboxFragmentAdapter.java
87d8ab4bb42c67a7a273c1ae76d94bf60cb3132a 21-Jul-2011 Ben Komalo <benkomalo@google.com> Prevent touching closed cursor

Bug: 4595568
Change-Id: Ic3087dc5f194aa879a3fea9d45fe77a1e285bde0
/packages/apps/Email/src/com/android/email/activity/MailboxFragmentAdapter.java
afbba1bcbb63559e8c6a3090494c7830311021e3 18-Jul-2011 Ben Komalo <benkomalo@google.com> Fix NPE in MailboxListFragment

Bug: 5037646
Change-Id: I74420d68398446f602ebe858760d9aaf5f88c107
/packages/apps/Email/src/com/android/email/activity/MailboxFragmentAdapter.java
a3ce177fa42bad62d4082f469b72b90b0aab037f 09-Jul-2011 Makoto Onuki <omakoto@google.com> Make nested folders selectable again

Bug 5009065

Change-Id: I58bcb748848592414ec2334951e57693ac24cd39
/packages/apps/Email/src/com/android/email/activity/MailboxFragmentAdapter.java
96e084e67a38cba86f592d733525de659f96dd78 02-Jul-2011 Makoto Onuki <omakoto@google.com> Merge "Work around for bug 4674712"
fdd99f5486d15d4cf5bd634ed81559d0181facc6 02-Jul-2011 Ben Komalo <benkomalo@google.com> Merge "Remove some stale stopships and TODO's"
8b72c7eb8defbf32fde6f650dc855bdf06e801a2 02-Jul-2011 Makoto Onuki <omakoto@google.com> Work around for bug 4674712

Seems like we're getting onItemClick() on header rows, which are
supposed to be disabled.

Change-Id: I03b108c508f46368cc420049eed67438af7a7735
/packages/apps/Email/src/com/android/email/activity/MailboxFragmentAdapter.java
130bf263da5b69ccc6f6054cc02a833d9993a7e8 02-Jul-2011 Ben Komalo <benkomalo@google.com> Remove some stale stopships and TODO's

Change-Id: I3221b3c35c5ffb464756f9de288bf36f560cf8fb
/packages/apps/Email/src/com/android/email/activity/MailboxFragmentAdapter.java
a6212c88e0fb5906cb4065c775c1f4c0b83b7ca4 30-Jun-2011 Makoto Onuki <omakoto@google.com> Fix bug 4978035 Precondition failure: Not combined mailbox

Also added test.

(For some reason the message count doesn't get set properly on tests...
I'll investigate it when I get around to it...)

Change-Id: I83f3b6f2079da06b2d4973419d2296e6492de1d3
/packages/apps/Email/src/com/android/email/activity/MailboxFragmentAdapter.java
4b39d7ccff82f54f6ac53075de70ac8ded9f4ca1 29-Jun-2011 Makoto Onuki <omakoto@google.com> Fix for "Unknown uri: .../mailbox/-4

It was caused by the fact that we show the combined starred mailbox
on each account's mailbox list.

Beacuse of this, when you open the starred mailbox on non-combined view,
we pass a normal account ID + the combined starred mailbox ID to the
AccountsLoader, which then thinks that because the account ID is not
ACCOUNT_ID_COMBINED_VIEW the mailbox ID must be of a regular mailbox,
issues a query to get mailbox info, and crashes because the mailbox
is virtual.

- Also fixed the issue that we don't show message count on the account
spinner for combined mailboxes.

bug 4971181

Change-Id: Iaa13b362505b8babc7f7ea8a03ddf5494736dc2d
/packages/apps/Email/src/com/android/email/activity/MailboxFragmentAdapter.java
29c89ad17a0983ddc4eb2b4922c93a53aff2d735 29-Jun-2011 Ben Komalo <benkomalo@google.com> Just mark search mailbox as not visible

This way we don't have to explicitly filter it in all the different
places we do selections on mailboxes.

Note that I didn't create an upgrade path for this. The only people with
search mailboxes are probably developers right now, and worst case for
people who experimented, they will just get the search mailbox visible

Change-Id: I9a0bf6df9985418d467a7348ed99a36521641b89
/packages/apps/Email/src/com/android/email/activity/MailboxFragmentAdapter.java
b859a3b61e8a491b53255b31bffa12cd312288a1 29-Jun-2011 Ben Komalo <benkomalo@google.com> Filter search mailboxes so they're not visible

Change-Id: I99edcb19ce9e320676dff55f219370730e74239b
/packages/apps/Email/src/com/android/email/activity/MailboxFragmentAdapter.java
f9a9f5289769c88b437155ae84c05d3ada96e727 25-Jun-2011 Makoto Onuki <omakoto@google.com> Fix header text on mailbox list fragment

Bug 4946676

Change-Id: I829c8df4a4e268e8807a3ec686dca5afdd173713
/packages/apps/Email/src/com/android/email/activity/MailboxFragmentAdapter.java
80d3875d306c60da83e547c573427627911f8a99 23-Jun-2011 Makoto Onuki <omakoto@google.com> Action bar: Use laoder to get current mailbox info

Before this CL, we had this crazy plumbing from MailboxListFragment
to ActionBarController to update the current mailbox name/message count.

This wouldn't work on 1-pane, so now ABC just gets the current mailbox id
from UIC and loads the name/count with its own loader.

Also...
- Fixed bug 4904450 and bug 4460470: Now we consistently use FolderProperties
to get proler display names and message counts.

- Renamed some confusing names in AccountSelectorAdapter

Change-Id: Ic7bea6da6d2859006fb8f9263024c7d5e62b1e7f
/packages/apps/Email/src/com/android/email/activity/MailboxFragmentAdapter.java
f5418f1f93b02e7fab9f15eb201800b65510998e 14-Jun-2011 Marc Blank <mblank@google.com> Move Account into its own top-level class

Change-Id: Ide7c991b7d4d418dbe17164421425bf898ba64ee
/packages/apps/Email/src/com/android/email/activity/MailboxFragmentAdapter.java
85bd26e21069b6ee3188be034025c207f4686684 08-Jun-2011 Todd Kennedy <toddke@google.com> Fix where recent mailboxes are displayed

For the non two pane devices, we only show the recent mailbox list in the
account spinner (and not on the mailbox list fragment).
For two pane devices, we only show the recent mailbox list in the mailbox
list fragment (and not on the account spinner)

Change-Id: I1094626532ad6d6548ef441929d94546c97304a3
/packages/apps/Email/src/com/android/email/activity/MailboxFragmentAdapter.java
dc6928d798d61049a47f4babeaa5aab90c091cc1 08-Jun-2011 Todd Kennedy <toddke@google.com> Add recent mailboxes to the mailbox list

Change-Id: I84ee9d0da43ccac4d10e5122f57583c4b39cf65d
/packages/apps/Email/src/com/android/email/activity/MailboxFragmentAdapter.java
1b404f4fff39977e4f8edc9258c1bd1075da11c6 07-Jun-2011 Todd Kennedy <toddke@google.com> Collapse MailboxAdapter & MailboxFragmentAdapter

MFA was the only subclass of MA and the abstraction no longer made sense.
Collapse the two into a single adapter class.

Change-Id: I32c6f027bc37f3da08626f743c3f494e5f48c3f0
/packages/apps/Email/src/com/android/email/activity/MailboxFragmentAdapter.java
da3d04ea31a8452d3e34003b699a02ea02e3632b 07-Jun-2011 Todd Kennedy <toddke@google.com> Add ability to create headers in the mailbox list

Change-Id: I9d1054056db7b6ac993570adcc4adc4cc6699e9c
/packages/apps/Email/src/com/android/email/activity/MailboxFragmentAdapter.java
844bf745044b4564f42a68f8b7d40105c4def294 01-Jun-2011 Makoto Onuki <omakoto@google.com> MailboxListFragment: In-place nested mailbox navigation

Now we reuse the same instance of the fragment for nested mailbox
navigation. (Don't use fragment transaction)

"CursorWithExtras" now only has the child count, so I removed the
bundle version and added a concrete class to MailboxFragmentAdapter.

With this CL the nested mailbox navigation on 1-pane should work, but
not back navigation. (Back press event isn't connected to the
fragment yet.)

Change-Id: I2c23651d9c8edb5fe062c68bbb9b462c8949ded4
/packages/apps/Email/src/com/android/email/activity/MailboxFragmentAdapter.java
ca6eca0466f9dc58317dd4334da2b951e23f06d7 25-May-2011 Todd Kennedy <toddke@google.com> Don't navigate to a shortcut mailbox

All shortcuts now have a mailbox associated with them. When launching
the app via shortcut, we want to show the messages within that mailbox, but,
we do not want to navigate into the mailbox; unless the mailbox has children.
Since we don't want to put too much informatin into the shortcut, we must
perform these checks at runtime. So, if ever we try to load a mailbox that
doesn't contain children, we load it's parent instead.

Change-Id: Idb5dbc7cd740b270a0068811abe685f963ca2c0b
/packages/apps/Email/src/com/android/email/activity/MailboxFragmentAdapter.java
d531dc3058c52b1e3ee2ee53eb8d63d6177d9f91 19-May-2011 Makoto Onuki <omakoto@google.com> Fix opening Starred mailbox.

We need to pass around the account ID with onMailboxSelected too.
(It's kinda sad it wouldn't have happened if we had par-account starred
mailbox.)

Also made sure MailboxListItem.mMailboxId now really contains only a mailbox
ID. Before this chage, we stored an account ID to this for an account row
on the combined mailbox.

Bug 4452811

Change-Id: I732fd8eb18f787f4a700a45a40768f96e3bb8751
/packages/apps/Email/src/com/android/email/activity/MailboxFragmentAdapter.java
b36ac017926f2557f4a476d0cefe49002d11233b 17-May-2011 Makoto Onuki <omakoto@google.com> Changes for NO_XXX

- Added Message.NO_MESSAGE
- Renamed PSEUDO_ACCOUNT_ID_NONE to NO_ACCOUNT
- Removed PARENT_KEY_NONE and use NO_MAILBOX instead
- For starters, cleaned up the UI controllers to use them.

Change-Id: I6cfd87ece2fced8e9f7c76d034c4d1dbf9e4db10
/packages/apps/Email/src/com/android/email/activity/MailboxFragmentAdapter.java
53ea83ebf91f820692e8fa8e781f5cc982dd94db 14-May-2011 Ben Komalo <benkomalo@google.com> Move Mailbox to top level class.

No other changes made.

Change-Id: I3d8f3c521dc0d902be313b25252b4b6a4a96e7ee
/packages/apps/Email/src/com/android/email/activity/MailboxFragmentAdapter.java
bfac9f2e8a13f6c719608a6948203bbef921c99f 13-May-2011 Makoto Onuki <omakoto@google.com> Move some of the log constants from Email to Logging

Change-Id: If9f4e4e3adcdef897a0d6a4e153bb446a8b24fdd
/packages/apps/Email/src/com/android/email/activity/MailboxFragmentAdapter.java
8a894f1ca052b6ca6c5d8cac73fc0f3332f7ec48 10-May-2011 Makoto Onuki <omakoto@google.com> Remove MailboxListFragment.DEFAULT_MAILBOX_ID

Now that we supports nested folders on IMAP too, it's not needed.

Change-Id: I80a6d6b59444132762d56ae6e03a5de69863ab8d
/packages/apps/Email/src/com/android/email/activity/MailboxFragmentAdapter.java
075feb45562429cb8c7e19b43dc91e9778afeb24 04-May-2011 Todd Kennedy <toddke@google.com> Implement new nested folder mocks

Change-Id: I7c0c1d41b7a40d83e1237ba31d5f7949945c7e1e
/packages/apps/Email/src/com/android/email/activity/MailboxFragmentAdapter.java
8b6e443cdd231a615e01931970e25bd5ecb79493 27-Apr-2011 Makoto Onuki <omakoto@google.com> Merge "Merged activity: move UI from activity to UIController"
aee368d205679a9b29f9955a48a8f413e42833fc 26-Apr-2011 Makoto Onuki <omakoto@google.com> Merged activity: move UI from activity to UIController

- Renamed XLFragmentManager to UIControllerTwoPane
- Moved UI code from the activity to UIControllerTwoPane
- Bunch of clean-ups (Mostly renames to make things self-descriptive)
- Removed unused class MessageListFragment.State
- Fix bug 4341563

Change-Id: Ia2230bd5ec501fbc5c92b07b2ba874153b577a39
/packages/apps/Email/src/com/android/email/activity/MailboxFragmentAdapter.java
019341af98ffe2dcd484bd0468c9858d9e7cd7a3 26-Apr-2011 Todd Kennedy <toddke@google.com> Set mailbox flags for message contents

For IMAP, it's possible for a mailbox to exist on the server, but, to be
unselectable. Previously, these folders were never added to the folder list.
However, with nested folder support, we need to have these folders in the
UX so the user can get to its sub-folders (which may be selectable).

Change-Id: I11135fafbb14b40660983804fb86bd223e180d5e
/packages/apps/Email/src/com/android/email/activity/MailboxFragmentAdapter.java
6c3cd4e2477eb1c7d1e107b3ea352639f1102933 15-Apr-2011 Todd Kennedy <toddke@google.com> Implement drag-n-drop with nested folders

We can now drill down into nested folders during drag-n-drop. Simply hover over
a collapsed folder for 750ms and it will auto-expand.

Change-Id: Ia9b42dd87e19c2ebdf8675c761cb1453bb26d158
/packages/apps/Email/src/com/android/email/activity/MailboxFragmentAdapter.java
7219fccc42e6bfe8fe7978953b626f842174e628 14-Apr-2011 Todd Kennedy <toddke@google.com> Always display subfolder icon in the same view

We were handling the subfolder icon strangely. Sometimes it was shown in the
folder_icon view and sometimes in the folder_expanded_icon view. Now the
folder_icon view is used exclusively for system folders (such as inbox, etc...)
and folder_expanded_icon is always used for the expanded/collapsed icon.

Change-Id: Ifff9a44cc792497a469c2408337dafd431f6dfc3
/packages/apps/Email/src/com/android/email/activity/MailboxFragmentAdapter.java
f7036b737907f06df1a06507754b28596cf8225e 12-Apr-2011 Todd Kennedy <toddke@google.com> only allow navigating to mailboxes w/ children

If a mailbox doesn't have any sub-mailboxes, only allow selecting them to view
any contained messages. Do not update the mailbox list.

Change-Id: I6f469bf20a57dc440885402084c21ff184f13dff
/packages/apps/Email/src/com/android/email/activity/MailboxFragmentAdapter.java
2b82c3f0a37ff1e09a21481fabfe4960006b8d83 12-Apr-2011 Todd Kennedy <toddke@google.com> Add columns to cursor to allow for proper layout

The layout requires different indentation. Although the exact layout may
change, we will likely always need to differentiate between the different
mailbox types.

Change-Id: Ia2ff84b552873f92fa45563b2dc0868c29bec3e3
/packages/apps/Email/src/com/android/email/activity/MailboxFragmentAdapter.java
7f139f14b97898e897d8326e14909b4c05e4d0cd 12-Apr-2011 Todd Kennedy <toddke@google.com> Add current nested folder to list

When selecting a nested folder, the currently selected folder should be listed
along with "All Folders" and sub-folders

Change-Id: I7c6f726a0355a13d3e7b59aa4707bd92473283b4
/packages/apps/Email/src/com/android/email/activity/MailboxFragmentAdapter.java
c5ea3f522ac835907ec48e117e7918802950d595 07-Apr-2011 Todd Kennedy <toddke@google.com> Using the wrong selection for Exchange accounts

Exchange accounts support nested folders, so, we need to use the selection
that excludes any mailboxes with IDs greater than 0. Otherwise, we see all
mailboxes on the account.

Change-Id: If8c2085458176e8bd87013e3b598bd7740c652b2
/packages/apps/Email/src/com/android/email/activity/MailboxFragmentAdapter.java
007d0be4eddad21776ba45db5186bb8a9157504c 07-Apr-2011 Todd Kennedy <toddke@google.com> First pass at nested folder support

currently only really works for exchange accounts. legacy accounts (imap
or pop) do not build a folder heirarchy.

Change-Id: Idb7c622b64a599a0776233a076359869f4ab4a4f
/packages/apps/Email/src/com/android/email/activity/MailboxFragmentAdapter.java
ad7dc464db6421d3cda62204124dedaefb0f035d 01-Apr-2011 Todd Kennedy <toddke@google.com> update mailbox adapter callback

the callback method name was not appropriate in all situations. This has been
renamed to just "onBind()" and will still be invoked whenever data is bound to
the adapter. also, create an empty callback that can be used if the adapter
doesn't need to be informed when a bind occurs.

Change-Id: Ifaa4aea3a59734557651270330ca9439e3ea4ab4
/packages/apps/Email/src/com/android/email/activity/MailboxFragmentAdapter.java
74bf57cfafde4095ee67985255cfaa8b1453115e 31-Mar-2011 Todd Kennedy <toddke@google.com> Create separate adapters for mailbox lists

There are currently two places where we use a mailbox list -- in the main
view and in the "move to" dialog. We've replaced the single, modally
configured adapter with two specialized subclasses.

Change-Id: I5dfd5ccd435fefbab4b7647c2bd7a14818f73bf3
/packages/apps/Email/src/com/android/email/activity/MailboxFragmentAdapter.java