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

Commit 2775f170 authored by Android Build Coastguard Worker's avatar Android Build Coastguard Worker
Browse files

Snap for 11522042 from db2035d9 to 24Q2-release

Change-Id: Id894a958a86119b09df71a974992b5eae10e4ca9
parents 75defe8d db2035d9
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -650,6 +650,14 @@ final class ContentRecorder implements WindowContainerListener {
        if (isCurrentlyRecording() && mLastRecordedBounds != null) {
            mMediaProjectionManager.notifyActiveProjectionCapturedContentVisibilityChanged(
                    isVisibleRequested);

            if (mContentRecordingSession.getContentToRecord() == RECORD_CONTENT_TASK) {
                // If capturing a task, then the toggle visibility of the recorded surface to match
                // visibility of the task, so we don't capture any mid-transition frames
                mRecordedWindowContainer.getSyncTransaction()
                        .setVisibility(mRecordedSurface, isVisibleRequested);
                mRecordedWindowContainer.scheduleAnimation();
            }
        }
    }