Merge "Fix some views not being tracked" into udc-dev am: f0e955ecd6
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/22841498 Change-Id: Iffeec999017bdeec456ef9bc7e40fb7317694dd8 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -1464,6 +1464,13 @@ public final class AutofillManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
synchronized (mLock) {
|
synchronized (mLock) {
|
||||||
|
if (mAllTrackedViews.contains(id)) {
|
||||||
|
// The id is tracked and will not trigger pre-fill request again.
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Add the id as tracked to avoid triggering fill request again and again.
|
||||||
|
mAllTrackedViews.add(id);
|
||||||
if (mTrackedViews != null) {
|
if (mTrackedViews != null) {
|
||||||
// To support the fill dialog can show for the autofillable Views in
|
// To support the fill dialog can show for the autofillable Views in
|
||||||
// different pages but in the same Activity. We need to reset the
|
// different pages but in the same Activity. We need to reset the
|
||||||
@@ -4064,11 +4071,6 @@ public final class AutofillManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void checkViewState(AutofillId id) {
|
void checkViewState(AutofillId id) {
|
||||||
if (mAllTrackedViews.contains(id)) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
// Add the id as tracked to avoid triggering fill request again and again.
|
|
||||||
mAllTrackedViews.add(id);
|
|
||||||
if (mHasNewTrackedView) {
|
if (mHasNewTrackedView) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user