diff options
author | Adam Lesinski <adamlesinski@google.com> | 2017-11-02 16:14:59 -0700 |
---|---|---|
committer | Adam Lesinski <adamlesinski@google.com> | 2017-11-03 11:19:36 -0700 |
commit | 3a725dc11f54cb68745ebdf3aa20908c58dc94f2 (patch) | |
tree | daa2299531d22d1a5b26ab534fff54a2524ce099 /tools/aapt2/cmd/Compile.cpp | |
parent | d46f87a9e2b444b6f9999d7ec86d347e2fe1b596 (diff) |
AAPT2: Fix GetFileType for unicode and long paths on Windows
Bug: 68262818
Test: manual
Change-Id: I4f02e544e45865984ff4e021a7d1e83f8baf24c3
Diffstat (limited to 'tools/aapt2/cmd/Compile.cpp')
-rw-r--r-- | tools/aapt2/cmd/Compile.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/aapt2/cmd/Compile.cpp b/tools/aapt2/cmd/Compile.cpp index 53910afff593..83512b9126da 100644 --- a/tools/aapt2/cmd/Compile.cpp +++ b/tools/aapt2/cmd/Compile.cpp @@ -674,7 +674,7 @@ int Compile(const std::vector<StringPiece>& args, IDiagnostics* diagnostics) { // Determine how to compile the file based on its type. auto compile_func = &CompileFile; - if (path_data.resource_dir == "values") { + if (path_data.resource_dir == "values" && path_data.extension == "xml") { compile_func = &CompileTable; // We use a different extension (not necessary anymore, but avoids altering the existing // build system logic). |