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

Commit c1f5756c authored by Raph Levien's avatar Raph Levien Committed by Android Git Automerger
Browse files

am 1aa52487: am 6c072401: Merge "Fix for bug 8500202: Right-to-left text not...

am 1aa52487: am 6c072401: Merge "Fix for bug 8500202: Right-to-left text not showing in list view" into jb-mr2-dev

* commit '1aa52487':
  Fix for bug 8500202: Right-to-left text not showing in list view
parents d7fec6ed 1aa52487
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -5944,6 +5944,11 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener
        }

        Layout.Alignment alignment = getLayoutAlignment();
        final boolean testDirChange = mSingleLine && mLayout != null &&
            (alignment == Layout.Alignment.ALIGN_NORMAL ||
             alignment == Layout.Alignment.ALIGN_OPPOSITE);
        int oldDir = 0;
        if (testDirChange) oldDir = mLayout.getParagraphDirection(0);
        boolean shouldEllipsize = mEllipsize != null && getKeyListener() == null;
        final boolean switchEllipsize = mEllipsize == TruncateAt.MARQUEE &&
                mMarqueeFadeMode != MARQUEE_FADE_NORMAL;
@@ -6032,7 +6037,7 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener
            }
        }

        if (bringIntoView) {
        if (bringIntoView || (testDirChange && oldDir != mLayout.getParagraphDirection(0))) {
            registerForPreDraw();
        }