Skip to content
Snippets Groups Projects
Commit 19d8bc26 authored by Jiangyou Li's avatar Jiangyou Li Committed by jiangyou li
Browse files

Skip onActivityEvent when remote ContentCaptureService is dead or unbound.

test: monkey

Change-Id: Ifa02ef7d5315e819862059d2ef910c0e1a123278
parent 52553bec
No related merge requests found
......@@ -554,6 +554,10 @@ final class ContentCapturePerUserService
if (mMaster.debug) Slog.d(mTag, "onActivityEvent(): no remote service");
return;
}
if (mRemoteService.getServiceInterface() == null) {
if (mMaster.debug) Slog.d(mTag, "onActivityEvent(): remote service is dead or unbound");
return;
}
final ActivityEvent event = new ActivityEvent(activityId, componentName, type);
if (mMaster.verbose) Slog.v(mTag, "onActivityEvent(): " + event);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment