Skip to content

Commit 15660c7

Browse files
committed
[Color] Fix dynamic color support check
Resolves material-components#4192
1 parent 81303a2 commit 15660c7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/java/com/google/android/material/color/DynamicColors.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ public static boolean isDynamicColorAvailable() {
401401
if (VERSION.SDK_INT < VERSION_CODES.S) {
402402
return false;
403403
}
404-
if (BuildCompat.isAtLeastT()) {
404+
if (VERSION.SDK_INT >= VERSION_CODES.S_V2) {
405405
return true;
406406
}
407407
DeviceSupportCondition deviceSupportCondition =

0 commit comments

Comments
 (0)