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

Commit 7725637a authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix negative size when size is greater than 2,147,483,647" into sc-dev

parents c330b2c4 248970aa
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -122,7 +122,7 @@ public class StorageAsyncLoader
                UserHandle.of(userId));
        } catch (NameNotFoundException e) {
            Log.e(TAG, "Not able to get Context for user ID " + userId);
            return 0;
            return 0L;
        }

        try (Cursor cursor = perUserContext.getContentResolver().query(
@@ -131,9 +131,9 @@ public class StorageAsyncLoader
                queryArgs,
                null /* cancellationSignal */)) {
            if (cursor == null) {
                return 0;
                return 0L;
            }
            return cursor.moveToFirst() ? cursor.getInt(0) : 0;
            return cursor.moveToFirst() ? cursor.getLong(0) : 0L;
        }
    }