Skip to content

Commit f428ee3

Browse files
committed
[Color] Fix dynamic color support check
1 parent cfef899 commit f428ee3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)