Merge "Fixing bug 2502522 - Accessibility events contain text of invisible views"
This commit is contained in:
committed by
Android (Google) Code Review
commit
c357df1261
@@ -6989,6 +6989,10 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener
|
||||
|
||||
@Override
|
||||
public boolean dispatchPopulateAccessibilityEvent(AccessibilityEvent event) {
|
||||
if (!isShown()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
final boolean isPassword = isPasswordInputType(mInputType);
|
||||
|
||||
if (!isPassword) {
|
||||
|
||||
Reference in New Issue
Block a user