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

Commit 1384d1d9 authored by Keisuke Kuroyanagi's avatar Keisuke Kuroyanagi Committed by Android (Google) Code Review
Browse files

Merge "Fix: TextView makes new layouts too frequently." into mnc-dev

parents 8a4014d2 17b0bda4
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -9443,12 +9443,14 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener
    public void onRtlPropertiesChanged(int layoutDirection) {
        super.onRtlPropertiesChanged(layoutDirection);

        mTextDir = getTextDirectionHeuristic();

        final TextDirectionHeuristic newTextDir = getTextDirectionHeuristic();
        if (mTextDir != newTextDir) {
            mTextDir = newTextDir;
            if (mLayout != null) {
                checkForRelayout();
            }
        }
    }

    TextDirectionHeuristic getTextDirectionHeuristic() {
        if (hasPasswordTransformationMethod()) {