* commit 'c62da8a0ba8e230f2d759d2219673553999d9c56': Minor style changes.
This commit is contained in:
@@ -159,7 +159,7 @@ public final class BridgeTypedArray extends TypedArray {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
// As unfortunate as it is, it's possible to use enums with all attribute formats,
|
// As unfortunate as it is, it's possible to use enums with all attribute formats,
|
||||||
// not just integers/enums. So, we need to search the enums always. In case,
|
// not just integers/enums. So, we need to search the enums always. In case
|
||||||
// enums are used, the returned value is an integer.
|
// enums are used, the returned value is an integer.
|
||||||
Integer v = resolveEnumAttribute(index);
|
Integer v = resolveEnumAttribute(index);
|
||||||
return v == null ? mResourceData[index].getValue() : String.valueOf((int) v);
|
return v == null ? mResourceData[index].getValue() : String.valueOf((int) v);
|
||||||
@@ -197,7 +197,7 @@ public final class BridgeTypedArray extends TypedArray {
|
|||||||
}
|
}
|
||||||
} catch (NumberFormatException e) {
|
} catch (NumberFormatException e) {
|
||||||
Bridge.getLog().warning(LayoutLog.TAG_RESOURCES_FORMAT,
|
Bridge.getLog().warning(LayoutLog.TAG_RESOURCES_FORMAT,
|
||||||
String.format("\"%s\" in attribute \"%2$s\" is not a valid integer",
|
String.format("\"%1$s\" in attribute \"%2$s\" is not a valid integer",
|
||||||
s, mNames[index]),
|
s, mNames[index]),
|
||||||
null);
|
null);
|
||||||
return defValue;
|
return defValue;
|
||||||
@@ -221,7 +221,7 @@ public final class BridgeTypedArray extends TypedArray {
|
|||||||
}
|
}
|
||||||
} catch (NumberFormatException e) {
|
} catch (NumberFormatException e) {
|
||||||
Bridge.getLog().warning(LayoutLog.TAG_RESOURCES_FORMAT,
|
Bridge.getLog().warning(LayoutLog.TAG_RESOURCES_FORMAT,
|
||||||
String.format("\"%s\" in attribute \"%2$s\" cannot be converted to float.",
|
String.format("\"%1$s\" in attribute \"%2$s\" cannot be converted to float.",
|
||||||
s, mNames[index]),
|
s, mNames[index]),
|
||||||
null);
|
null);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user