Fix crash due to inconsistent handling of CR

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
Change-Id: Ie86a9fda7f2452eb913154e79a59fe19f060c5f8
1 file changed