mirror of
https://github.com/material-components/material-components-android.git
synced 2026-02-20 08:39:55 +08:00
[M3][Color] Provide better logging for ColorResourcesTableCreator
PiperOrigin-RevId: 449003101 (cherry picked from commit 29fddaa40a8c0f1ad15d91b8f72c8f7346a24f55)
This commit is contained in:
parent
dff14cadd7
commit
b33cf80dd7
@ -74,7 +74,11 @@ final class ColorResourcesTableCreator {
|
||||
context.getResources().getResourceName(entry.getKey()),
|
||||
entry.getValue());
|
||||
if (colorResource.typeId != TYPE_ID_COLOR) {
|
||||
throw new IllegalArgumentException("Non color resource found: " + colorResource.name);
|
||||
throw new IllegalArgumentException(
|
||||
"Non color resource found: name="
|
||||
+ colorResource.name
|
||||
+ ", typeId="
|
||||
+ Integer.toHexString(colorResource.typeId & 0xFF));
|
||||
}
|
||||
PackageInfo packageInfo;
|
||||
if (colorResource.packageId == ANDROID_PACKAGE_ID) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user