diff --git a/lib/java/com/google/android/material/color/DynamicColors.java b/lib/java/com/google/android/material/color/DynamicColors.java index 9d7961d3831..21a69d92d28 100644 --- a/lib/java/com/google/android/material/color/DynamicColors.java +++ b/lib/java/com/google/android/material/color/DynamicColors.java @@ -231,7 +231,8 @@ private static void applyIfAvailable( theme = getDefaultThemeOverlay(activity); } if (theme != 0 && precondition.shouldApplyDynamicColors(activity, theme)) { - activity.setTheme(theme); + // Use applyStyle() instead of setTheme() due to Force Dark issue. + activity.getTheme().applyStyle(theme, /* force= */ true); } }