Skip to content

Commit 571a196

Browse files
pekingmeleticiarossi
authored andcommitted
[Button] Test improve memory usage when materialSizeOverlay is used.
PiperOrigin-RevId: 752787092
1 parent af7f254 commit 571a196

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/java/com/google/android/material/theme/overlay/MaterialThemeOverlay.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public static Context wrap(
104104
obtainMaterialOverlayIds(context, set, optionalAttrs, defStyleAttr, defStyleRes);
105105
for (int optionalOverlayId : optionalOverlayIds) {
106106
if (optionalOverlayId != 0) {
107-
contextThemeWrapper = new ContextThemeWrapper(contextThemeWrapper, optionalOverlayId);
107+
contextThemeWrapper.getTheme().applyStyle(optionalOverlayId, true);
108108
}
109109
}
110110

0 commit comments

Comments
 (0)