Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5e2b156a authored by Felipe Leme's avatar Felipe Leme
Browse files

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
parent 2e8c7670
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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() {
+2 −1
Original line number Diff line number Diff line
@@ -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