Merge "Fix crash after destroyed" into qt-qpr1-dev

This commit is contained in:
TreeHugger Robot
2019-12-12 09:33:41 +00:00
committed by Android (Google) Code Review

View File

@@ -242,6 +242,7 @@ public final class FillWindow implements AutoCloseable {
synchronized (mLock) { synchronized (mLock) {
if (mDestroyed) return; if (mDestroyed) return;
if (mUpdateCalled) { if (mUpdateCalled) {
mFillView.setOnClickListener(null);
hide(); hide();
mProxy.report(AutofillProxy.REPORT_EVENT_UI_DESTROYED); mProxy.report(AutofillProxy.REPORT_EVENT_UI_DESTROYED);
} }