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

Commit b3670c54 authored by Fabrice Di Meglio's avatar Fabrice Di Meglio
Browse files

Fix bug #12422326 Unable to change text direction programmatically using...

Fix bug #12422326 Unable to change text direction programmatically using setTextDirection Android SDK API - DO NOT MERGE

- force TextView internal layout recreation when its TextDirection is changed

Change-Id: I7d6b088a9235362e03cb6694392df71bbf5a323a
(cherry picked from commit 22228fec)
parent fee6f69e
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -8667,6 +8667,10 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener
        super.onRtlPropertiesChanged(layoutDirection);

        mTextDir = getTextDirectionHeuristic();

        if (mLayout != null) {
            checkForRelayout();
        }
    }

    TextDirectionHeuristic getTextDirectionHeuristic() {