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

Commit 2d3ca47e authored by Alan Viverette's avatar Alan Viverette
Browse files

Always update drawable container source res

Bug: 27349209
Change-Id: I3bb3d4862a03fd5ce0beeb2bf5208f2917ec9320
parent 8baf238a
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) {