summaryrefslogtreecommitdiff
path: root/tools/aapt2/LoadedApk.cpp
diff options
context:
space:
mode:
authorPierre Lecesne <lecesne@google.com>2017-11-10 22:31:01 +0000
committerPierre Lecesne <lecesne@google.com>2017-11-13 21:07:34 +0000
commitd55bef78a5f2a0fe8068b26b463b161bd0398791 (patch)
tree05a154606f720ac82bf85797faee537d0edc4fde /tools/aapt2/LoadedApk.cpp
parenta591149cbce49306a6a5e127f077b3551873d490 (diff)
AAPT2 - Convert command to copy all the files.
Test: Manual Change-Id: I8705966cb34ff41eb362126a35956720147fae91
Diffstat (limited to 'tools/aapt2/LoadedApk.cpp')
-rw-r--r--tools/aapt2/LoadedApk.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/aapt2/LoadedApk.cpp b/tools/aapt2/LoadedApk.cpp
index 921d8531cbd3..5981401195a4 100644
--- a/tools/aapt2/LoadedApk.cpp
+++ b/tools/aapt2/LoadedApk.cpp
@@ -235,8 +235,7 @@ bool LoadedApk::WriteToArchive(IAaptContext* context, ResourceTable* split_table
return false;
}
} else {
- uint32_t compression_flags = file->WasCompressed() ? ArchiveEntry::kCompress : 0u;
- if (!io::CopyFileToArchive(context, file, path, compression_flags, writer)) {
+ if (!io::CopyFileToArchivePreserveCompression(context, file, path, writer)) {
return false;
}
}