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

Commit ff436804 authored by Kai Li's avatar Kai Li
Browse files

Remove the broadcast to createSystemUIUnderlay.

As planned, this should be migrated to an AIDL. Currently this broadcast causes a deadlock in trunkfood, so let's just remove it and land the AIDL very soon.

Bug: 411566363
Bug: 410392136
Bug: 403422950
Change-Id: I6f01b46498898b6ae4408a008ab01f15109e1483
Flag: android.view.contentcapture.flags.enable_system_ui_underlay
Test: atest CtsContentCaptureServiceTestCase
parent 6f39c91c
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