diff options
| author | 2012-11-14 19:57:11 -0800 | |
|---|---|---|
| committer | 2012-11-14 19:57:11 -0800 | |
| commit | 8701bb90db889c4731ed15c6588854870f34cdd4 (patch) | |
| tree | 49dc0fb28d1d8580e398a30235eeee59077b69c1 | |
| parent | 18f95189727de29246b663ad4557075678217555 (diff) | |
Fix bug #6638582 Password fields appears RTL in Arabic locale , it should be LTR
- change heuristic to LTR.
Change-Id: I3c5f413e48ceddbd931d713eb8c168431fcd09a2
| -rw-r--r-- | core/java/android/widget/TextView.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/core/java/android/widget/TextView.java b/core/java/android/widget/TextView.java index 5d904004cf02..267b22aa34fe 100644 --- a/core/java/android/widget/TextView.java +++ b/core/java/android/widget/TextView.java @@ -8229,9 +8229,8 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener TextDirectionHeuristic getTextDirectionHeuristic() { if (hasPasswordTransformationMethod()) { - // TODO: take care of the content direction to show the password text and dots justified - // to the left or to the right - return TextDirectionHeuristics.LOCALE; + // passwords fields should be LTR + return TextDirectionHeuristics.LTR; } // Always need to resolve layout direction first |