summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorDeepanshu Gupta <deepanshu@google.com>2014-08-26 16:33:14 -0700
committerDeepanshu Gupta <deepanshu@google.com>2014-08-26 16:33:14 -0700
commitca22ba9eafe4193d213c5897f9303d02062effb4 (patch)
tree82e26e631924d8af76801a545c3ecd2cd4be1609 /tools
parent6dbe512eaaad3813c041fe68e95c7a9b1f8f1650 (diff)
downloadframeworks_base-ca22ba9eafe4193d213c5897f9303d02062effb4.zip
frameworks_base-ca22ba9eafe4193d213c5897f9303d02062effb4.tar.gz
frameworks_base-ca22ba9eafe4193d213c5897f9303d02062effb4.tar.bz2
Fix invalid conditional check.
The check was always false. This wasn't really a problem since the regex check later took care of it. But it's just wrong to leave such mistakes in the code once they are noticed. Change-Id: I84270a96141428bf15949ce8c881d2e4a2aa95f6
Diffstat (limited to 'tools')
-rw-r--r--tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ResourceHelper.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ResourceHelper.java b/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ResourceHelper.java
index adb0937..a66d278 100644
--- a/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ResourceHelper.java
+++ b/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ResourceHelper.java
@@ -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] != '-') {
return false;
}