summaryrefslogtreecommitdiffstats
path: root/libs
diff options
context:
space:
mode:
authorAdam Lesinski <adamlesinski@google.com>2015-07-28 00:08:45 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-07-28 00:08:45 +0000
commitfd44b56d599bc6c6e7397dcdfaa6d613805a88cb (patch)
tree28cbd828b9a313de98f804cf7092a3847c5aa426 /libs
parentf63800ddcc68944532f7842b6ebf80898147ed4d (diff)
parent5b0f1be0a23011416697efaa7e9c050e466c44f5 (diff)
downloadframeworks_base-fd44b56d599bc6c6e7397dcdfaa6d613805a88cb.zip
frameworks_base-fd44b56d599bc6c6e7397dcdfaa6d613805a88cb.tar.gz
frameworks_base-fd44b56d599bc6c6e7397dcdfaa6d613805a88cb.tar.bz2
Merge "AAPT: Fix printing of resource configurations" into mnc-dev
Diffstat (limited to 'libs')
-rw-r--r--libs/androidfw/ResourceTypes.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/libs/androidfw/ResourceTypes.cpp b/libs/androidfw/ResourceTypes.cpp
index a95db9f..62aabb1 100644
--- a/libs/androidfw/ResourceTypes.cpp
+++ b/libs/androidfw/ResourceTypes.cpp
@@ -6758,7 +6758,13 @@ void ResTable::print(bool inclValues) const
printf(" NON-INTEGER ResTable_type ADDRESS: %p\n", type);
continue;
}
- String8 configStr = type->config.toString();
+
+ // Always copy the config, as fields get added and we need to
+ // set the defaults.
+ ResTable_config thisConfig;
+ thisConfig.copyFromDtoH(type->config);
+
+ String8 configStr = thisConfig.toString();
printf(" config %s:\n", configStr.size() > 0
? configStr.string() : "(default)");
size_t entryCount = dtohl(type->entryCount);