Merge "Fix bug #8913650 spinner dropdown(android.R.layout.simple_spinner_dropdown_item) random alignment on RTL." into jb-mr2-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
28df6d3d4f
@@ -6198,7 +6198,7 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener
|
||||
BoringLayout.Metrics hintBoring = UNKNOWN_BORING;
|
||||
|
||||
if (mTextDir == null) {
|
||||
getTextDirectionHeuristic();
|
||||
mTextDir = getTextDirectionHeuristic();
|
||||
}
|
||||
|
||||
int des = -1;
|
||||
@@ -8541,6 +8541,13 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener
|
||||
return mEditor.mInBatchEditControllers;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onRtlPropertiesChanged(int layoutDirection) {
|
||||
super.onRtlPropertiesChanged(layoutDirection);
|
||||
|
||||
mTextDir = getTextDirectionHeuristic();
|
||||
}
|
||||
|
||||
TextDirectionHeuristic getTextDirectionHeuristic() {
|
||||
if (hasPasswordTransformationMethod()) {
|
||||
// passwords fields should be LTR
|
||||
|
||||
Reference in New Issue
Block a user