Finish autofill session when service dies.
Fixes: 37565347
Test: manual verification (cannot use CTS because test and service runs in the
same process)
Change-Id: I04e2d4a3587b9b9cf72a06c46291fb3ba6bbc91e
This commit is contained in:
@@ -123,8 +123,7 @@ final class RemoteFillService implements DeathRecipient {
|
||||
}
|
||||
|
||||
public void destroy() {
|
||||
mHandler.sendMessage(obtainMessage(
|
||||
RemoteFillService::handleDestroy, this));
|
||||
mHandler.sendMessage(obtainMessage(RemoteFillService::handleDestroy, this));
|
||||
}
|
||||
|
||||
private void handleDestroy() {
|
||||
|
||||
@@ -839,7 +839,8 @@ final class Session implements RemoteFillService.FillServiceCallbacks, ViewState
|
||||
// FillServiceCallbacks
|
||||
@Override
|
||||
public void onServiceDied(RemoteFillService service) {
|
||||
// TODO(b/337565347): implement
|
||||
Slog.w(TAG, "removing session because service died");
|
||||
forceRemoveSelfLocked();
|
||||
}
|
||||
|
||||
// AutoFillUiCallback
|
||||
|
||||
Reference in New Issue
Block a user