LayoutLib: Allow '+' in float attributes.

Earlier change to fix the invalid conditional check inadvertedly
disallowed '+'.

Change-Id: I75a37926681fe3a496482d6fb75161ac75326109
This commit is contained in:
Deepanshu Gupta
2014-08-27 10:21:20 -07:00
parent ca22ba9eaf
commit 458f2a7bbb

View File

@ -379,7 +379,7 @@ public final class ResourceHelper {
}
// check the first character
if ((buf[0] < '0' || buf[0] > '9') && buf[0] != '.' && buf[0] != '-') {
if ((buf[0] < '0' || buf[0] > '9') && buf[0] != '.' && buf[0] != '-' && buf[0] != '+') {
return false;
}