summaryrefslogtreecommitdiff
path: root/src/com/android/email/data/ClosingMatrixCursor.java
Commit message (Collapse)AuthorAgeFilesLines
* Cache column name/indexes so we can use getColumnIndex()Scott Kennedy2013-02-061-1/+2
| | | | | | | | MatrixCursor doesn't do this, so we need to add our own cache. Depends on Ia5ffd31f54a2a335f495df5e0d1a0886ee08c14b Change-Id: Ica78e3cec747bf86fcef16508156e359216c64fe
* Fix bug where mailbox list won't update in combined viewMakoto Onuki2011-01-261-0/+42
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