summaryrefslogtreecommitdiff
path: root/tools/aapt/AaptAssets.cpp
diff options
context:
space:
mode:
author Narayan Kamath <narayan@google.com> 2015-02-10 16:11:55 +0000
committer Narayan Kamath <narayan@google.com> 2015-02-10 16:11:55 +0000
commit7f1a8957cca420d525719836069b7f6d5ee04718 (patch)
tree7a1b1296267ba7429581f1bd854dcc9192dfc315 /tools/aapt/AaptAssets.cpp
parent3ec5f97ac5705d5fe2c7ceb7b61a4df5f18b980f (diff)
Parse res-car as resources for UI_MODE_TYPE_CAR..
.. and not a 3 letter language code. bug: 19291216 Change-Id: I01bf76d89880693dcdb4384d5c239902fa3defa8
Diffstat (limited to 'tools/aapt/AaptAssets.cpp')
-rw-r--r--tools/aapt/AaptAssets.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/aapt/AaptAssets.cpp b/tools/aapt/AaptAssets.cpp
index 2d351294c515..871e04f7aa9d 100644
--- a/tools/aapt/AaptAssets.cpp
+++ b/tools/aapt/AaptAssets.cpp
@@ -345,7 +345,8 @@ int AaptLocaleValue::initFromDirName(const Vector<String8>& parts, const int sta
return ++currentIndex;
} else {
- if ((part.length() == 2 || part.length() == 3) && isAlpha(part)) {
+ if ((part.length() == 2 || part.length() == 3)
+ && isAlpha(part) && strcmp("car", part.string())) {
setLanguage(part);
if (++currentIndex == size) {
return size;