diff options
author | 2022-08-25 15:57:52 +0000 | |
---|---|---|
committer | 2022-08-25 15:57:52 +0000 | |
commit | cfc559b1891f594775185608ed50ca0bd0e43ced (patch) | |
tree | 46df586b4bc89e8524d4f68ba2f8b19b15267439 /tools/aapt2/dump | |
parent | a833d0f25bab61cb3b9c089bc760f68664ede8b2 (diff) |
Expose default ('--_--') locale in proto format.
Bug: b/243145989
Test: Dump_test
Change-Id: Ie56aabb0f9b4b923d560470db7b426ab6ee34bd2
Diffstat (limited to 'tools/aapt2/dump')
-rw-r--r-- | tools/aapt2/dump/DumpManifest.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/aapt2/dump/DumpManifest.cpp b/tools/aapt2/dump/DumpManifest.cpp index b3165d320e9b..2a5ad9606bb6 100644 --- a/tools/aapt2/dump/DumpManifest.cpp +++ b/tools/aapt2/dump/DumpManifest.cpp @@ -2845,7 +2845,9 @@ bool ManifestExtractor::DumpProto(pb::Badging* out_badging) { supports_screen_->ToProtoScreens(out_badging, target_sdk_); for (auto& config : locales_) { - if (!config.first.empty()) { + if (config.first.empty()) { + out_badging->add_locales("--_--"); + } else { out_badging->add_locales(config.first); } } |