Don't destroy service when the bind connection died.

Otherwise it won't reconnect...

Bug: 126807984
Test: manual verification

Change-Id: I54c7fc244672d38f387f786ea13a7ffb54aca44b
This commit is contained in:
Felipe Leme
2019-03-07 14:32:56 -08:00
parent 6c1d1c32e3
commit 817b5e12f9
2 changed files with 7 additions and 4 deletions

View File

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

View File

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