Merge "Fixed isVisibleToUserForAutofill() again." into pi-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
e24c95fac5
@@ -8910,7 +8910,11 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
|
||||
if (node != null) {
|
||||
return node.isVisibleToUser();
|
||||
}
|
||||
// if node is null, assume it's not visible anymore
|
||||
} else {
|
||||
Log.w(VIEW_LOG_TAG, "isVisibleToUserForAutofill(" + virtualId + "): no provider");
|
||||
}
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -3858,6 +3858,7 @@ public class AccessibilityNodeInfo implements Parcelable {
|
||||
builder.append("; password: ").append(isPassword());
|
||||
builder.append("; scrollable: ").append(isScrollable());
|
||||
builder.append("; importantForAccessibility: ").append(isImportantForAccessibility());
|
||||
builder.append("; visible: ").append(isVisibleToUser());
|
||||
builder.append("; actions: ").append(mActions);
|
||||
|
||||
return builder.toString();
|
||||
|
||||
@@ -2540,6 +2540,10 @@ public final class AutofillManager {
|
||||
ArraySet<AutofillId> updatedVisibleTrackedIds = null;
|
||||
ArraySet<AutofillId> updatedInvisibleTrackedIds = null;
|
||||
if (client != null) {
|
||||
if (sVerbose) {
|
||||
Log.v(TAG, "onVisibleForAutofillChangedLocked(): inv= " + mInvisibleTrackedIds
|
||||
+ " vis=" + mVisibleTrackedIds);
|
||||
}
|
||||
if (mInvisibleTrackedIds != null) {
|
||||
final ArrayList<AutofillId> orderedInvisibleIds =
|
||||
new ArrayList<>(mInvisibleTrackedIds);
|
||||
|
||||
Reference in New Issue
Block a user