commit | 463b48203ab777e0b81632c480de3d1d6f608aa4 | [log] [tgz] |
---|---|---|
author | Roozbeh Pournader <roozbeh@google.com> | Thu Aug 06 16:04:45 2015 -0700 |
committer | Roozbeh Pournader <roozbeh@google.com> | Fri Aug 07 13:56:54 2015 -0700 |
tree | 37dd4516cf21f40e97ae4aa20bac28b5d72d572e | |
parent | 6e02fa01a023cea148e87899c9bdedf12c46075e [diff] |
Support all RTL scripts in getLayoutDirectionFromLocale(). Previously, only the languages written in Arabic and Hebrew were considered right-to-left. Now, ICU is used to return the direction of the language, which not only support other right-to-left scripts (such as Thaana), but also has better logic to determine the direction of the locale and uses caching to improve the speed. Bug: 22559274 Change-Id: I760be7984a9b35ea77d59ca84a220798e205af36