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

Commit 9f074eee authored by Derek Sollenberger's avatar Derek Sollenberger
Browse files

Fix bug in ImageDecoder which provided the incorrect density to NinePatchDrawables

Bug: 72381918
Test: ThemeHostTests
Change-Id: I7679d4a8d9c3495fd7b24536f54d23bfef007f26
parent d997d191
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();