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