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

Commit 4be80155 authored by Seigo Nonaka's avatar Seigo Nonaka
Browse files

Fix shiftDrawingOffsetForStartOverhang

The shiftDrawingOffsetForStartOverhang has couple of issues
- The TextView does not propagate attribute to Layout builder.
-- Fixed by passing value to builder
- The right most offset is not shifted in case of RTL.
-- Fixed by applying right overhang in case of RTL direction.
- The offset is not correctly applied in case of multi paragraph
  multi directional text. e.g. first paragraph is LTR and second
  paragraph is RTL.
-- Fixed by applying shift amount for each paragraph. With this
   change, global shifting drawing offset no longer work. Instead
   shifting drawing offset for each paragraph.

Bug: 434885800
Test: atest CtsGraphicsTestCases
Test: atest CtsTextTestCases
Flag: com.android.text.flags.fix_shift_drawing_amount
Change-Id: I7d94515ff68948c39c96d59e221c91a1398b33cf
parent 06f8ee78
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