[Partial Screen Sharing] Dismiss background after app selector launched

Finish the activity correctly

Fix: 283967615
Test: openPermissionActivity_launchAppSelector_activityIsFinished
Change-Id: I9110a43ee39671105ee16a64cd41ebc2a071237d
This commit is contained in:
yyalan
2023-07-12 12:37:36 +01:00
committed by Yalan Yiue
parent 482c676e79
commit 0796d35510

View File

@@ -330,6 +330,8 @@ public class MediaProjectionPermissionActivity extends Activity
// Don't send cancel if the user has moved on to the next activity.
if (!mUserSelectingTask) {
finish(RECORD_CANCEL, /* projection= */ null);
} else {
super.finish();
}
}