commit | 8823c85f0a98988a21bddedf1e1c3fb725258ba1 | [log] [tgz] |
---|---|---|
author | Roozbeh Pournader <roozbeh@google.com> | Thu Jun 09 18:36:47 2016 -0700 |
committer | Roozbeh Pournader <roozbeh@google.com> | Thu Jun 09 18:46:31 2016 -0700 |
tree | a4098bf7fadca9890dd90305e5cc598b06134439 | |
parent | ce9b1fa9e2c808907d5a2fea37527a805334731b [diff] |
Clean up TextUtils.doesNotNeedBidi() One of the signatures of the method that used CharSequence was unused. The other's implementation was too crude, resulting in too many false negatives. The new code now shares logic with BoringLayout in order to detect potential bidi-affecting characters. The logic is intentionally rough in order to be efficient: we still have false negatives, but not as many as before. Bug: 29254696 Change-Id: I106133369e93e49d7b2fe82ffc433e4556740ee8