[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
Loading
Please register or sign in to comment