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

Commit a35e9a07 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Release virtual display before stopping projection" am: 2bd30738 am: 042c3a33

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I6f7dd7113c76aa098c774b7ba831281ccde89652
parents 77af6922 042c3a33
Loading
Loading
Loading
Loading
+3 −3
Original line number Original line Diff line number Diff line
@@ -187,12 +187,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");