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

Commit 30e7f79b authored by Keisuke Kuroyanagi's avatar Keisuke Kuroyanagi Committed by Android Git Automerger
Browse files

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

* commit '1384d1d9':
  Fix: TextView makes new layouts too frequently.
parents fc954121 1384d1d9
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()) {