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:
Felipe Leme
2018-07-23 11:49:17 -07:00
parent 2e8c7670b1
commit 5e2b156aaf
2 changed files with 3 additions and 3 deletions

View File

@@ -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() {

View File

@@ -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