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

Commit 817b5e12 authored by Felipe Leme's avatar Felipe Leme
Browse files

Don't destroy service when the bind connection died.

Otherwise it won't reconnect...

Bug: 126807984
Test: manual verification

Change-Id: I54c7fc244672d38f387f786ea13a7ffb54aca44b
parent 6c1d1c32
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -480,6 +480,11 @@ public abstract class AbstractRemoteService<S extends AbstractRemoteService<S, I
        return mDestroyed;
    }

    @Override
    public String toString() {
        return getClass().getSimpleName() + "[" + mComponentName + "]";
    }

    /**
     * Base class for the requests serviced by the remote service.
     *
+2 −4
Original line number Diff line number Diff line
@@ -175,10 +175,8 @@ final class ContentCapturePerUserService

    @Override // from ContentCaptureServiceCallbacks
    public void onServiceDied(@NonNull RemoteContentCaptureService service) {
        if (mMaster.debug) Slog.d(TAG, "remote service died: " + service);
        synchronized (mLock) {
            removeSelfFromCacheLocked();
        }
        // Don't do anything; eventually the system will bind to it again...
        Slog.w(TAG, "remote service died: " + service);
    }

    // TODO(b/119613670): log metrics