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

This commit is contained in:
Felipe Leme 2019-03-08 03:44:51 +00:00 committed by Android (Google) Code Review
commit 0879ad0bd4
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

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