Skip to content

Commit 8701bb9

Browse files
author
Fabrice Di Meglio
committed
Fix bug #6638582 Password fields appears RTL in Arabic locale , it should be LTR
- change heuristic to LTR. Change-Id: I3c5f413e48ceddbd931d713eb8c168431fcd09a2
1 parent 18f9518 commit 8701bb9

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

core/java/android/widget/TextView.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8229,9 +8229,8 @@ boolean isInBatchEditMode() {
82298229

82308230
TextDirectionHeuristic getTextDirectionHeuristic() {
82318231
if (hasPasswordTransformationMethod()) {
8232-
// TODO: take care of the content direction to show the password text and dots justified
8233-
// to the left or to the right
8234-
return TextDirectionHeuristics.LOCALE;
8232+
// passwords fields should be LTR
8233+
return TextDirectionHeuristics.LTR;
82358234
}
82368235

82378236
// Always need to resolve layout direction first

0 commit comments

Comments
 (0)