From 8701bb90db889c4731ed15c6588854870f34cdd4 Mon Sep 17 00:00:00 2001 From: Fabrice Di Meglio Date: Wed, 14 Nov 2012 19:57:11 -0800 Subject: Fix bug #6638582 Password fields appears RTL in Arabic locale , it should be LTR - change heuristic to LTR. Change-Id: I3c5f413e48ceddbd931d713eb8c168431fcd09a2 --- core/java/android/widget/TextView.java | 5 ++--- 1 file 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 -- cgit v1.2.3-59-g8ed1b