Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0564f069 authored by Paul Westbrook's avatar Paul Westbrook Committed by Android (Google) Code Review
Browse files

Merge "Fix Gmail unit test"

parents 8bede19e 6d3564e7
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -430,11 +430,10 @@ public final class Downloads {

            ContentResolver cr = context.getContentResolver();

            Cursor c = cr.query(
                    downloadUri, DOWNLOADS_PROJECTION, null /* selection */, null /* selection args */,
                    null /* sort order */);
            Cursor c = cr.query(downloadUri, DOWNLOADS_PROJECTION, null /* selection */,
                    null /* selection args */, null /* sort order */);
            try {
                if (!c.moveToNext()) {
                if (c == null || !c.moveToNext()) {
                    return result;
                }