summaryrefslogtreecommitdiff
path: root/libs/androidfw
diff options
context:
space:
mode:
authorYi Kong <yikong@google.com>2019-08-30 07:16:21 -0700
committerandroid-build-merger <android-build-merger@google.com>2019-08-30 07:16:21 -0700
commitae6248d35ba562d77308b4f6e164ede5114871aa (patch)
tree0977a914baceb240f874573235148ccdbb5998d7 /libs/androidfw
parentf575ac0667dec8b7efd86b055a478fccd3ca3c3c (diff)
parent946e857c71410a6eb64fd20497ae5e25650e0741 (diff)
Merge "Fix reversed logic"
am: 946e857c71 Change-Id: I22194d1d2923170a224ad6d782dd8155e957ebe3
Diffstat (limited to 'libs/androidfw')
-rw-r--r--libs/androidfw/ResourceTypes.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/androidfw/ResourceTypes.cpp b/libs/androidfw/ResourceTypes.cpp
index 2ad2e76cc696..66df59b4c83b 100644
--- a/libs/androidfw/ResourceTypes.cpp
+++ b/libs/androidfw/ResourceTypes.cpp
@@ -7403,12 +7403,12 @@ void ResTable::print_value(const Package* pkg, const Res_value& value) const
print_complex(value.data, true);
printf("\n");
} else if (value.dataType >= Res_value::TYPE_FIRST_COLOR_INT
- || value.dataType <= Res_value::TYPE_LAST_COLOR_INT) {
+ && value.dataType <= Res_value::TYPE_LAST_COLOR_INT) {
printf("(color) #%08x\n", value.data);
} else if (value.dataType == Res_value::TYPE_INT_BOOLEAN) {
printf("(boolean) %s\n", value.data ? "true" : "false");
} else if (value.dataType >= Res_value::TYPE_FIRST_INT
- || value.dataType <= Res_value::TYPE_LAST_INT) {
+ && value.dataType <= Res_value::TYPE_LAST_INT) {
printf("(int) 0x%08x or %d\n", value.data, value.data);
} else {
printf("(unknown type) t=0x%02x d=0x%08x (s=0x%04x r=0x%02x)\n",