* commit 'eb4dc749de7f6ee45cae070db960890643e94aff': Mask OOBE when filtering recent documents.
This commit is contained in:
@ -51,7 +51,7 @@ public class FilteringCursorWrapper extends AbstractCursor {
|
||||
mPosition = new int[count];
|
||||
|
||||
cursor.moveToPosition(-1);
|
||||
while (cursor.moveToNext()) {
|
||||
while (cursor.moveToNext() && mCount < count) {
|
||||
final String mimeType = getCursorString(cursor, Document.COLUMN_MIME_TYPE);
|
||||
final long lastModified = getCursorLong(cursor, Document.COLUMN_LAST_MODIFIED);
|
||||
if (rejectMimes != null && MimePredicate.mimeMatches(rejectMimes, mimeType)) {
|
||||
|
@ -55,6 +55,10 @@ import java.util.concurrent.TimeUnit;
|
||||
public class RecentLoader extends AsyncTaskLoader<DirectoryResult> {
|
||||
private static final boolean LOGD = true;
|
||||
|
||||
// TODO: clean up cursor ownership so background thread doesn't traverse
|
||||
// previously returned cursors for filtering/sorting; this currently races
|
||||
// with the UI thread.
|
||||
|
||||
private static final int MAX_OUTSTANDING_RECENTS = 4;
|
||||
private static final int MAX_OUTSTANDING_RECENTS_SVELTE = 2;
|
||||
|
||||
|
Reference in New Issue
Block a user