Skip to content

Commit

Permalink
[M3][Color] Code style update
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 525194182
  • Loading branch information
Material Design Team authored and drchen committed Apr 19, 2023
1 parent 86cd9d7 commit 1fd695c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/java/com/google/android/material/color/DynamicColors.java
Expand Up @@ -39,6 +39,7 @@
import java.lang.reflect.Method;
import java.util.Collections;
import java.util.HashMap;
import java.util.Locale;
import java.util.Map;

/** Utility for applying dynamic colors to application/activities. */
Expand Down Expand Up @@ -366,9 +367,10 @@ public static boolean isDynamicColorAvailable() {
return true;
}
DeviceSupportCondition deviceSupportCondition =
DYNAMIC_COLOR_SUPPORTED_MANUFACTURERS.get(Build.MANUFACTURER.toLowerCase());
DYNAMIC_COLOR_SUPPORTED_MANUFACTURERS.get(Build.MANUFACTURER.toLowerCase(Locale.ROOT));
if (deviceSupportCondition == null) {
deviceSupportCondition = DYNAMIC_COLOR_SUPPORTED_BRANDS.get(Build.BRAND.toLowerCase());
deviceSupportCondition =
DYNAMIC_COLOR_SUPPORTED_BRANDS.get(Build.BRAND.toLowerCase(Locale.ROOT));
}
return deviceSupportCondition != null && deviceSupportCondition.isSupported();
}
Expand Down

0 comments on commit 1fd695c

Please sign in to comment.