commit | aa0af8e86278d8b0935c95a5ff06c80532bf7733 | [log] [tgz] |
---|---|---|
author | Roozbeh Pournader <roozbeh@google.com> | Tue Dec 13 17:19:58 2016 -0800 |
committer | Roozbeh Pournader <roozbeh@google.com> | Wed Dec 14 14:10:46 2016 -0800 |
tree | 0dfcabe34d92c9fa7d465b6aed418ad188d6228d | |
parent | e70c9095b02ec46111c3e3677b43dab1a78e6188 [diff] |
Use TextDirectionHeuristics to detect text direction in Html Previously, AndroidBidi was used instead, whch did a lot of extra work just to detect a paragraph's direction. TextDirectionHeuristics stops as soon as the direction is found, and avoids JNI too. Bug: 21455837 Test: cts-tradefed run cts-dev --module CtsTextTestCases --test android.text.cts.HtmlTest Change-Id: Iea196fb5ca43dca99e65a367a2da701b1c1b98b8