am 6c072401: Merge "Fix for bug 8500202: Right-to-left text not showing in list view" into jb-mr2-dev
* commit '6c0724010f1a98e391827109c2c369b64197c449': Fix for bug 8500202: Right-to-left text not showing in list view
This commit is contained in:
@@ -5921,6 +5921,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;
|
||||
@@ -6009,7 +6014,7 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener
|
||||
}
|
||||
}
|
||||
|
||||
if (bringIntoView) {
|
||||
if (bringIntoView || (testDirChange && oldDir != mLayout.getParagraphDirection(0))) {
|
||||
registerForPreDraw();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user