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

Commit 1ddde37f authored by Beth Thibodeau's avatar Beth Thibodeau Committed by Automerger Merge Worker
Browse files

Merge "Release virtual display before stopping projection" into sc-dev am: d29e65b8

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13545840

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ia55c15a10fdf89925bf32f395a26f04dc792ac42
parents a0946d1b d29e65b8
Loading
Loading
Loading
Loading
+3 −3
Original line number Original line Diff line number Diff line
@@ -277,12 +277,12 @@ public class ScreenMediaRecorder {
     */
     */
    void end() {
    void end() {
        mMediaRecorder.stop();
        mMediaRecorder.stop();
        mMediaProjection.stop();
        mMediaRecorder.release();
        mMediaRecorder.release();
        mMediaRecorder = null;
        mMediaProjection = null;
        mInputSurface.release();
        mInputSurface.release();
        mVirtualDisplay.release();
        mVirtualDisplay.release();
        mMediaProjection.stop();
        mMediaRecorder = null;
        mMediaProjection = null;
        stopInternalAudioRecording();
        stopInternalAudioRecording();


        Log.d(TAG, "end recording");
        Log.d(TAG, "end recording");