commit | 5eeaaddffd23d8d85aeb321e3ceea626e42cf9de | [log] [tgz] |
---|---|---|
author | Adam Lesinski <adamlesinski@google.com> | Thu Aug 25 12:26:56 2016 -0700 |
committer | Adam Lesinski <adamlesinski@google.com> | Wed Aug 31 18:32:34 2016 -0700 |
tree | dcd102c0f14825c34c2251427db84e48cb11d8a7 | |
parent | 79758c8e7706f3cce265a881cc66df8771d3c456 [diff] [blame] |
AAPT2: Add Inline Complex XML support See: https://developer.android.com/guide/topics/resources/complex-xml-resources.html Change-Id: I8274c85e25cabf90423141c228697e873167d136
diff --git a/tools/aapt2/xml/XmlUtil.cpp b/tools/aapt2/xml/XmlUtil.cpp index 0e9d005..b570fd7 100644 --- a/tools/aapt2/xml/XmlUtil.cpp +++ b/tools/aapt2/xml/XmlUtil.cpp
@@ -23,8 +23,8 @@ namespace aapt { namespace xml { -std::string buildPackageNamespace(const StringPiece& package) { - std::string result = kSchemaPublicPrefix; +std::string buildPackageNamespace(const StringPiece& package, bool privateReference) { + std::string result = privateReference ? kSchemaPrivatePrefix : kSchemaPublicPrefix; result.append(package.data(), package.size()); return result; }