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

Commit 4ae5471c authored by Alan Viverette's avatar Alan Viverette Committed by Android (Google) Code Review
Browse files

Merge "Scale density correctly on VectorDrawable.applyTheme()"

parents 874ce44a 4a94faa0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -603,7 +603,7 @@ public class VectorDrawable extends Drawable {
        final int densityDpi = a.getResources().getDisplayMetrics().densityDpi;
        final int newSourceDensity = densityDpi == 0 ? DisplayMetrics.DENSITY_DEFAULT : densityDpi;
        final int oldSourceDensity = pathRenderer.mSourceDensity;
        final float densityScale = oldSourceDensity / (float) newSourceDensity;
        final float densityScale = newSourceDensity / (float) oldSourceDensity;
        pathRenderer.mSourceDensity = newSourceDensity;

        final int tintMode = a.getInt(R.styleable.VectorDrawable_tintMode, -1);