History log of /packages/apps/Email/src/com/android/email/data/ClosingMatrixCursor.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
7fdde9bb4a24e931618a7a64227e2194c89034da 07-Feb-2013 Scott Kennedy <skennedy@google.com> Cache column name/indexes so we can use getColumnIndex()

MatrixCursor doesn't do this, so we need to add our own cache.

Depends on Ia5ffd31f54a2a335f495df5e0d1a0886ee08c14b

Change-Id: Ica78e3cec747bf86fcef16508156e359216c64fe
/packages/apps/Email/src/com/android/email/data/ClosingMatrixCursor.java
d0ee1e404db67a238d7017fb77757a0ffb2a4a1b 26-Jan-2011 Makoto Onuki <omakoto@google.com> Fix bug where mailbox list won't update in combined view

The problem was that CombinedMailboxesLoader used the cursor returned by
super.loadInBackground() (which contains accounts), to build a matrix
cursor (which contains special mailboxes and accounts and will be returned),
and *it closed the first cursor* after building the matrix cursor.

However, because this first cursor is the one that CursorLoader sets an
observer, it shouldn't be closed until the returned matix cursor closes.
In other words the two cursors should have the same lifecycle.

Fixed it by using ClosingMatrixCursor that used by AccountsLoader, which
is doing a similar thing, but properly.

Bug 3387730

Change-Id: I554ade001dc25afa869eefb4dcf9887495e6753e
/packages/apps/Email/src/com/android/email/data/ClosingMatrixCursor.java