Fix crash after destroyed
Remove the touch listener while destroyed to avoid causing the IllegalStateException. Fixes: 144703050 Test: atest CtsAutoFillServiceTestCases Change-Id: I04b30fa3cef5bea00a4dbd9957cae8246f09a802
This commit is contained in:
@@ -242,6 +242,7 @@ public final class FillWindow implements AutoCloseable {
|
||||
synchronized (mLock) {
|
||||
if (mDestroyed) return;
|
||||
if (mUpdateCalled) {
|
||||
mFillView.setOnClickListener(null);
|
||||
hide();
|
||||
mProxy.report(AutofillProxy.REPORT_EVENT_UI_DESTROYED);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user