Merge "Ignore dispatchProvideStructureForAutofill() when layout is being updated." into oc-dev
This commit is contained in:
@@ -8065,6 +8065,10 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
|
|||||||
boolean forAutofill, @AutofillFlags int flags) {
|
boolean forAutofill, @AutofillFlags int flags) {
|
||||||
if (forAutofill) {
|
if (forAutofill) {
|
||||||
structure.setAutofillId(getAutofillId());
|
structure.setAutofillId(getAutofillId());
|
||||||
|
if (!isLaidOut()) {
|
||||||
|
Log.w(VIEW_LOG_TAG, "dispatchProvideAutofillStructure(): not laid out, ignoring");
|
||||||
|
return;
|
||||||
|
}
|
||||||
onProvideAutofillStructure(structure, flags);
|
onProvideAutofillStructure(structure, flags);
|
||||||
onProvideAutofillVirtualStructure(structure, flags);
|
onProvideAutofillVirtualStructure(structure, flags);
|
||||||
} else if (!isAssistBlocked()) {
|
} else if (!isAssistBlocked()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user