summaryrefslogtreecommitdiff
path: root/tools/aapt2/LoadedApk.cpp
diff options
context:
space:
mode:
authorRyan Mitchell <rtmitchell@google.com>2018-08-16 17:26:08 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2018-08-16 17:26:08 +0000
commitead275e19fc9ffbd751b3956a84e27844b97ffe7 (patch)
treef19915c04e52949cb29908ef1e0f6588ad98d766 /tools/aapt2/LoadedApk.cpp
parenta60283fdd1f2c67259e8b0c10d88ecfb60a1328b (diff)
parentf3649d669059b924ce9eb3eb7909cbf0a2ed31a8 (diff)
Merge "AAPT2: Compile --zip flag"
Diffstat (limited to 'tools/aapt2/LoadedApk.cpp')
-rw-r--r--tools/aapt2/LoadedApk.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/tools/aapt2/LoadedApk.cpp b/tools/aapt2/LoadedApk.cpp
index b6ee1ad83ce3..a73d56c8f951 100644
--- a/tools/aapt2/LoadedApk.cpp
+++ b/tools/aapt2/LoadedApk.cpp
@@ -184,10 +184,7 @@ bool LoadedApk::WriteToArchive(IAaptContext* context, ResourceTable* split_table
std::unique_ptr<io::IFileCollectionIterator> iterator = apk_->Iterator();
while (iterator->HasNext()) {
io::IFile* file = iterator->Next();
-
std::string path = file->GetSource().path;
- // The name of the path has the format "<zip-file-name>@<path-to-file>".
- path = path.substr(path.find('@') + 1);
// Skip resources that are not referenced if requested.
if (path.find("res/") == 0 && referenced_resources.find(path) == referenced_resources.end()) {