summaryrefslogtreecommitdiffstats
path: root/tools/aapt/Resource.cpp
diff options
context:
space:
mode:
authorAdrian Roos <roosa@google.com>2015-06-01 17:59:41 -0700
committerAdrian Roos <roosa@google.com>2015-06-02 02:55:52 +0000
commit5892248580859620db90d5ef2e3c2f48531933fa (patch)
tree1aa8d618ee303c56fba94e636d53f46db6e221c9 /tools/aapt/Resource.cpp
parent8a8ffd4e9b15a04d2af0909205658f08c76bd6b2 (diff)
downloadframeworks_base-5892248580859620db90d5ef2e3c2f48531933fa.zip
frameworks_base-5892248580859620db90d5ef2e3c2f48531933fa.tar.gz
frameworks_base-5892248580859620db90d5ef2e3c2f48531933fa.tar.bz2
aapt: add option for stricter symbol generation
Adds an option that prevents generating java symbols for string resources that don't have a default localization. Bug: 21537397 Change-Id: Ifafa942b24d5cdbed93651cde363e859be13d395
Diffstat (limited to 'tools/aapt/Resource.cpp')
-rw-r--r--tools/aapt/Resource.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/aapt/Resource.cpp b/tools/aapt/Resource.cpp
index beb94fd..5d20815 100644
--- a/tools/aapt/Resource.cpp
+++ b/tools/aapt/Resource.cpp
@@ -1604,7 +1604,7 @@ status_t buildResources(Bundle* bundle, const sp<AaptAssets>& assets, sp<ApkBuil
if (table.hasResources()) {
sp<AaptSymbols> symbols = assets->getSymbolsFor(String8("R"));
- err = table.addSymbols(symbols);
+ err = table.addSymbols(symbols, bundle->getSkipSymbolsWithoutDefaultLocalization());
if (err < NO_ERROR) {
return err;
}