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

Commit 827d5c09 authored by Fabrice Di Meglio's avatar Fabrice Di Meglio
Browse files

Fix View textDirection refresh

- the refresh was no more done correctly after the use of display lists

Change-Id: I5c74bbe565c603fe2e7fd793dd49c3b20036e04b
parent a6deda43
Loading
Loading
Loading
Loading
+4 −6
Original line number Diff line number Diff line
@@ -4933,9 +4933,8 @@ public class View implements Drawable.Callback, Drawable.Callback2, KeyEvent.Cal
    @RemotableViewMethod
    public void setLayoutDirection(int layoutDirection) {
        if (getLayoutDirection() != layoutDirection) {
            // Reset the current layout direction
            // Reset the current layout direction and the resolved one
            mPrivateFlags2 &= ~LAYOUT_DIRECTION_MASK;
            // Reset the current resolved layout direction
            resetResolvedLayoutDirection();
            // Set the new layout direction (filtered) and ask for a layout pass
            mPrivateFlags2 |=
@@ -14544,14 +14543,13 @@ public class View implements Drawable.Callback, Drawable.Callback2, KeyEvent.Cal
     */
    public void setTextDirection(int textDirection) {
        if (getTextDirection() != textDirection) {
            // Reset the current text direction
            // Reset the current text direction and the resolved one
            mPrivateFlags2 &= ~TEXT_DIRECTION_MASK;
            resetResolvedTextDirection();
            // Set the new text direction
            mPrivateFlags2 |= ((textDirection << TEXT_DIRECTION_MASK_SHIFT) & TEXT_DIRECTION_MASK);
            // Reset the current resolved text direction
            resetResolvedTextDirection();
            // Ask for a layout pass
            requestLayout();
            invalidate(true);
        }
    }