We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f63800d + 5b0f1be commit fd44b56Copy full SHA for fd44b56
1 file changed
libs/androidfw/ResourceTypes.cpp
@@ -6758,7 +6758,13 @@ void ResTable::print(bool inclValues) const
6758
printf(" NON-INTEGER ResTable_type ADDRESS: %p\n", type);
6759
continue;
6760
}
6761
- String8 configStr = type->config.toString();
+
6762
+ // Always copy the config, as fields get added and we need to
6763
+ // set the defaults.
6764
+ ResTable_config thisConfig;
6765
+ thisConfig.copyFromDtoH(type->config);
6766
6767
+ String8 configStr = thisConfig.toString();
6768
printf(" config %s:\n", configStr.size() > 0
6769
? configStr.string() : "(default)");
6770
size_t entryCount = dtohl(type->entryCount);
0 commit comments