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

Commit c04c265d authored by Derek Sollenberger's avatar Derek Sollenberger Committed by Android (Google) Code Review
Browse files

Merge "Fix bug in ImageDecoder which provided the incorrect density to NinePatchDrawables"

parents b2b54745 9f074eee
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -920,10 +920,6 @@ public final class ImageDecoder implements AutoCloseable {
            Resources res = src.getResources();
            byte[] np = bm.getNinePatchChunk();
            if (np != null && NinePatch.isNinePatchChunk(np)) {
                if (res != null) {
                    bm.setDensity(res.getDisplayMetrics().densityDpi);
                }

                Rect opticalInsets = new Rect();
                bm.getOpticalInsets(opticalInsets);
                Rect padding = new Rect();