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

Commit 71d9c486 authored by Mark Renouf's avatar Mark Renouf Committed by Android (Google) Code Review
Browse files

Merge "Ensure the Surface is closed when the session ends" into sc-dev

parents 11623bb1 2270753d
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -278,6 +278,7 @@ public class ScrollCaptureClient {
                mStarted = true;
            } catch (RemoteException e) {
                Log.w(TAG, "Failed to start", e);
                mReader.close();
            }
        }

@@ -327,6 +328,7 @@ public class ScrollCaptureClient {
            }
            if (mStarted) {
                mShutdownListener = listener;
                mReader.close();
                try {
                    // listener called from onConnectionClosed callback
                    mConnection.endCapture();