summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorTobias Thierer <tobiast@google.com>2019-03-04 15:59:32 +0000
committerTobias Thierer <tobiast@google.com>2019-03-04 16:09:56 +0000
commitc29a6191ca7fe25b470bb981fae02c138b1a2597 (patch)
tree18d8b48312f0d2c0da46af2a2a2241f87121e6a7 /tools/aapt2/java/JavaClassGenerator_test.cpp
parent3005a80e5f8700e4b98450675fcf50001d49f0c5 (diff)
Work around unintentionally translated String resource crashing SystemUI.
A resource file name donottranslate.xml stops the Android Studio linter complaining about untranslated string resources, but this is inconsistent with current aapt behavior because aapt doesn't implicitly infer translatable="false" for such strings. Therefore, pseudo translations are generated for pseudo locales such as en-XA, even though that was not intended. This looks to be a bug in aapt. As a short-term workaround to stop SystemUI crashing, this CL explicitly marks the offending Strings as translatable="false", which should stop them being translated into pseudo locales and therefore stop SystemUI crashing. Bug: 126423638 Test: Treehugger Change-Id: Ice903070ea89dbef17b347c5e0ccd6a8d896e432
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions