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

Skip to content
Commit 9b85832d authored by Seigo Nonaka's avatar Seigo Nonaka
Browse files

[2nd attempt] Fix crash due to inconsistent handling of CR

The previous attempt was reverted due to crashing in case of
empty text.

Original commit message:
ICU BiDi handles CR as paragraph separator but Android doen't do it.
To minimize the performane penalty, recompute the BiDi only when the
CR letter is present.

Bug: 330051215
Test: atest StaticLayoutTest#testNotCrashByCRCharacter
Test: atest CtsWidgetTestCases
Test: atest CtsTextTestCases
Test: atest CtsGraphicsTestCases
Test: atest FrameworksCoreTests:android.text
Test: atest android.view.cts.ViewStubTest#testSetOnInflateListenerError
Change-Id: Ifee0043adfcbb0ab007010f175d13e8ee7708243
parent a3295d4a
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