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

Commit 4d385a0a authored by nicolasroard's avatar nicolasroard
Browse files

Add missing flag for bounds decode

bug:11140621

Change-Id: I08af1a6dd9527a03b21d7ab0c3cff776f37201ac
parent a164496b
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -284,6 +284,7 @@ public final class ImageLoader {
     */
    public static Rect loadBitmapBounds(Context context, Uri uri) {
        BitmapFactory.Options o = new BitmapFactory.Options();
        o.inJustDecodeBounds = true;
        loadBitmap(context, uri, o);
        return new Rect(0, 0, o.outWidth, o.outHeight);
    }