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

Commit 0879ad0b authored by Felipe Leme's avatar Felipe Leme Committed by Android (Google) Code Review
Browse files

Merge "Don't destroy service when the bind connection died."

parents 7b6320b0 817b5e12
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
@@ -177,10 +177,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