Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5536c4fd authored by Roozbeh Pournader's avatar Roozbeh Pournader
Browse files

Use bidi heuristics correctly in BoringLayout#isBoring()

in order to determine if the text is RTL, the previous code ran
chunks of the text (in code units) through the TextDirectionHeuristic
instead of the whole text, which could result in misdetection as RTL
in various cases, or missing some cases due to RTL characters getting
split across chunks. Now we look at the whole text instead.

This also refactors the code to make it clearer to understand and
removes an unused signature for isBoring.

Bug: 27702584
Change-Id: I8d98614a0af28c0d4e61af5ab4a27a8a3ab8c9dc
parent 185037ec
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment