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

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
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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);