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

Commit c797a4d4 authored by Kai Li's avatar Kai Li Committed by Android (Google) Code Review
Browse files

Merge "Remove the broadcast to createSystemUIUnderlay." into main

parents 0efc9694 ff436804
Loading
Loading
Loading
Loading
+0 −10
Original line number Diff line number Diff line
@@ -605,21 +605,11 @@ final class ContentCapturePerUserService
    private void createSystemUIUnderlay(int sessionId, ActivityId activityId) {
        if (mMaster.debug) Slog.d(mTag, "createSystemUIUnderlay: " + sessionId);
        // TODO: b/403422950 migrate to aidl when available
        Intent intent = new Intent(ACTION_CREATE_UNDERLAY);
        intent.putExtra("dataSessionId", sessionId);
        intent.putExtra("timestamp", System.currentTimeMillis());
        intent.putExtra("activityId", activityId);
        getContext().sendBroadcast(intent);
    }

    private void destroySystemUIUnderlay(int sessionId, ActivityId activityId) {
        if (mMaster.debug) Slog.d(mTag, "destroySystemUIUnderlay: " + sessionId);
        // TODO: b/403422950 migrate to aidl when available
        Intent intent = new Intent(ACTION_DESTROY_UNDERLAY);
        intent.putExtra("dataSessionId", sessionId);
        intent.putExtra("timestamp", System.currentTimeMillis());
        intent.putExtra("activityId", activityId);
        getContext().sendBroadcast(intent);
    }

    @Override