Merge "Don't destroy service when the bind connection died."
This commit is contained in:
commit
0879ad0bd4
@ -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.
|
||||
*
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user