summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSvetoslav Ganov <svetoslavganov@google.com>2010-11-16 16:44:03 -0800
committerSvetoslav Ganov <svetoslavganov@google.com>2010-11-16 16:44:03 -0800
commit1d1e1105ad2497ba51930b75eea0a5e819044b43 (patch)
treeeec438b1ce83ec22c0c72cf3aa320694cc6455b1
parent0dcea08af30465407201a77d660a8b7500a024b5 (diff)
downloadframeworks_base-1d1e1105ad2497ba51930b75eea0a5e819044b43.zip
frameworks_base-1d1e1105ad2497ba51930b75eea0a5e819044b43.tar.gz
frameworks_base-1d1e1105ad2497ba51930b75eea0a5e819044b43.tar.bz2
3049240 TalkBack on Accessibility Options reads out passwords entered in during Lock screen
Change-Id: I70b29611d798df1da10e0e950154ef5f49aba7c5
-rw-r--r--core/java/android/widget/TextView.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/core/java/android/widget/TextView.java b/core/java/android/widget/TextView.java
index fbc8549..aefe8d8 100644
--- a/core/java/android/widget/TextView.java
+++ b/core/java/android/widget/TextView.java
@@ -6720,7 +6720,8 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener
+ " before=" + before + " after=" + after + ": " + buffer);
if (AccessibilityManager.getInstance(mContext).isEnabled()
- && !isPasswordInputType(mInputType)) {
+ && !isPasswordInputType(mInputType)
+ && !hasPasswordTransformationMethod()) {
mBeforeText = buffer.toString();
}
@@ -7599,7 +7600,7 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener
return false;
}
- final boolean isPassword = isPasswordInputType(mInputType);
+ final boolean isPassword = hasPasswordTransformationMethod();
if (!isPassword) {
CharSequence text = getText();