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

Commit d75e64af authored by Leon Scroggins's avatar Leon Scroggins
Browse files

Do not loop forever.

Bug:3279066
Change-Id: I5222c465af2345f643bfd528d580d32ab9ba328e
parent 0f868ca0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -908,7 +908,7 @@ public class DownloadManager {
            if (cursor == null) {
                return null;
            }
            while (cursor.moveToFirst()) {
            if (cursor.moveToFirst()) {
                int status = cursor.getInt(cursor.getColumnIndexOrThrow(COLUMN_STATUS));
                if (DownloadManager.STATUS_SUCCESSFUL == status) {
                    int indx = cursor.getColumnIndexOrThrow(