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

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

Merge "Make Drawable#createFrom* support incomplete images"

parents 6e7a863a c0fa2b95
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1245,6 +1245,9 @@ public abstract class Drawable {

            return ImageDecoder.decodeDrawable(source, (decoder, info, src) -> {
                decoder.setAllocator(ImageDecoder.ALLOCATOR_SOFTWARE);
                decoder.setOnPartialImageListener((e) -> {
                    return e.getError() == ImageDecoder.DecodeException.SOURCE_INCOMPLETE;
                });
            });
        } catch (IOException e) {
            /*  do nothing.