summaryrefslogtreecommitdiff
path: root/tools/aapt/ResourceTable.h
diff options
context:
space:
mode:
authorEric Fischer <enf@google.com>2011-09-27 16:09:41 -0700
committerEric Fischer <enf@google.com>2011-09-27 16:09:41 -0700
commit914f7e683a01f15f8830810c49eaecc31bc554a6 (patch)
tree702278393601f3f27b0ec0213246c8ea3bf70d09 /tools/aapt/ResourceTable.h
parent006e6ef2e6349f5b3f9ef27c81750f007f56c69a (diff)
Don't lose product variant strings that also vary between locales.
Localized strings with product variants were not being included in the APK, apparently because the check to ensure that a different variation of the string had not already been included in the APK was matching the version of it from the default, untranslated configuration. Now check to make sure that the string not only exists but also exists in the correct configuration. Bug 5372711 Change-Id: I52975570b75e0f11827dc6bcf1cb4a987d0541aa
Diffstat (limited to 'tools/aapt/ResourceTable.h')
-rw-r--r--tools/aapt/ResourceTable.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/aapt/ResourceTable.h b/tools/aapt/ResourceTable.h
index 734c541f9b61..80f2192da4f6 100644
--- a/tools/aapt/ResourceTable.h
+++ b/tools/aapt/ResourceTable.h
@@ -124,6 +124,11 @@ public:
const String16& type,
const String16& name) const;
+ bool hasBagOrEntry(const String16& package,
+ const String16& type,
+ const String16& name,
+ const ResTable_config& config) const;
+
bool hasBagOrEntry(const String16& ref,
const String16* defType = NULL,
const String16* defPackage = NULL);