summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorRoozbeh Pournader <roozbeh@google.com>2015-07-16 15:28:58 -0700
committerRoozbeh Pournader <roozbeh@google.com>2015-07-17 12:02:22 -0700
commit8d2e0f7898ef7ab9b8775d88a2f8af2eea365c51 (patch)
treef8644fa293aa236280026e0986d32e2413d0639a /tools/aapt2/java/JavaClassGenerator_test.cpp
parent4e9c63cbe1712f750d5eaaa044e957c7f7696bf8 (diff)
Bidi-wrap the results of format[Short]FileSize().
Previously, users of the results of formatFileSize() and formatShortFileSize() needed to unicodeWrap the results themselves using BidiFormatter, which resulted in several bugs and inconsistencies across the platform when they didn't, especially in Hebrew and Urdu locales: Hebrew and Urdu use Latin abbreviations like 'MB' for file sizes which cause undesired reorderings (or incorrect detection of the string direction when the formatted file size starts the string). With this patch, the results are now bidi-wrapped before being returned if the locale of the context passed in to the formatter is a right-to-left locale. Bug: 22237132 Bug: 22273176 Change-Id: If076636d15828fc810feef6f0fa8806ef52aed5d
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions