Merge "Fix bug #12422326 Unable to change text direction programmatically using setTextDirection Android SDK API - DO NOT MERGE" into klp-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
2b58a29f82
@@ -8667,6 +8667,10 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener
|
||||
super.onRtlPropertiesChanged(layoutDirection);
|
||||
|
||||
mTextDir = getTextDirectionHeuristic();
|
||||
|
||||
if (mLayout != null) {
|
||||
checkForRelayout();
|
||||
}
|
||||
}
|
||||
|
||||
TextDirectionHeuristic getTextDirectionHeuristic() {
|
||||
|
||||
Reference in New Issue
Block a user