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

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

Merge "Always update drawable container source res" into nyc-dev

parents e90c2c5a 2d3ca47e
Loading
Loading
Loading
Loading
+10 −10
Original line number Diff line number Diff line
@@ -898,9 +898,8 @@ public class DrawableContainer extends Drawable implements Drawable.Callback {
         * @param res the resources used to inflate density-dependent values
         */
        final void updateDensity(Resources res) {
            if (mSourceRes != null) {
            if (res != null) {
                mSourceRes = res;
            }

                // The density may have changed since the last update (if any). Any
                // dimension-type attributes will need their default values scaled.
@@ -913,6 +912,7 @@ public class DrawableContainer extends Drawable implements Drawable.Callback {
                    mCheckedPadding = false;
                }
            }
        }

        final void applyTheme(Theme theme) {
            if (theme != null) {