am b35b8c13: Merge "Security fix in accessibility - don\'t read out password. # 2371557" into eclair
Merge commit 'b35b8c1334b8bb8c4fb8b679fdb0b9bcbd5b41fe' into eclair-plus-aosp * commit 'b35b8c1334b8bb8c4fb8b679fdb0b9bcbd5b41fe': Security fix in accessibility - don't read out password. # 2371557
This commit is contained in:
@@ -6301,7 +6301,8 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener
|
|||||||
if (DEBUG_EXTRACT) Log.v(TAG, "beforeTextChanged start=" + start
|
if (DEBUG_EXTRACT) Log.v(TAG, "beforeTextChanged start=" + start
|
||||||
+ " before=" + before + " after=" + after + ": " + buffer);
|
+ " before=" + before + " after=" + after + ": " + buffer);
|
||||||
|
|
||||||
if (AccessibilityManager.getInstance(mContext).isEnabled()) {
|
if (AccessibilityManager.getInstance(mContext).isEnabled()
|
||||||
|
&& !isPasswordInputType(mInputType)) {
|
||||||
mBeforeText = buffer.toString();
|
mBeforeText = buffer.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -6972,9 +6973,7 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean dispatchPopulateAccessibilityEvent(AccessibilityEvent event) {
|
public boolean dispatchPopulateAccessibilityEvent(AccessibilityEvent event) {
|
||||||
boolean isPassword =
|
final boolean isPassword = isPasswordInputType(mInputType);
|
||||||
(mInputType & (EditorInfo.TYPE_MASK_CLASS | EditorInfo.TYPE_MASK_VARIATION)) ==
|
|
||||||
(EditorInfo.TYPE_CLASS_TEXT | EditorInfo.TYPE_TEXT_VARIATION_PASSWORD);
|
|
||||||
|
|
||||||
if (!isPassword) {
|
if (!isPassword) {
|
||||||
CharSequence text = getText();
|
CharSequence text = getText();
|
||||||
|
|||||||
Reference in New Issue
Block a user