We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 80e50de commit b84f35fCopy full SHA for b84f35f
lib/java/com/google/android/material/color/DynamicColors.java
@@ -231,7 +231,8 @@ private static void applyIfAvailable(
231
theme = getDefaultThemeOverlay(activity);
232
}
233
if (theme != 0 && precondition.shouldApplyDynamicColors(activity, theme)) {
234
- activity.setTheme(theme);
+ // Use applyStyle() instead of setTheme() due to Force Dark issue.
235
+ activity.getTheme().applyStyle(theme, /* force= */ true);
236
237
238
0 commit comments