diff options
author | Liz Kammer <eakammer@google.com> | 2020-05-21 20:04:38 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2020-05-21 20:04:38 +0000 |
commit | 5691fb68fd7031ab08742e9e062f500476322caf (patch) | |
tree | ee7161593b807e4def9d91b5df9a9fd45951ab74 /tools/aapt2/cmd/Link.cpp | |
parent | dbf501e0eb654911c6c83c7a574e9cc880df44b6 (diff) | |
parent | ad19790515bf4ceacc5ebdf582e71d76272b4b36 (diff) |
Merge "Do not rename R.java package"
Diffstat (limited to 'tools/aapt2/cmd/Link.cpp')
-rw-r--r-- | tools/aapt2/cmd/Link.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tools/aapt2/cmd/Link.cpp b/tools/aapt2/cmd/Link.cpp index e8970d48e404..7afb0000aea1 100644 --- a/tools/aapt2/cmd/Link.cpp +++ b/tools/aapt2/cmd/Link.cpp @@ -1659,10 +1659,8 @@ class Linker { return 1; } - // Determine the package name under which to merge resources. - if (options_.rename_resources_package) { - context_->SetCompilationPackage(options_.rename_resources_package.value()); - } else if (Maybe<AppInfo> maybe_app_info = + // First extract the package name without modifying it (via --rename-manifest-package). + if (Maybe<AppInfo> maybe_app_info = ExtractAppInfoFromManifest(manifest_xml.get(), context_->GetDiagnostics())) { // Extract the package name from the manifest ignoring the value of --rename-manifest-package. const AppInfo& app_info = maybe_app_info.value(); |