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

This commit is contained in:
Mark Renouf
2021-02-26 14:21:49 +00:00
committed by Android (Google) Code Review

View File

@@ -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();