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

Commit feda0bf5 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix reshowing MediaProjection consent Dialog" into main

parents d276eb1b fb4fd1ad
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -131,7 +131,9 @@ public class MediaProjectionPermissionActivity extends Activity {

        // This activity is launched directly by an app, or system server. System server provides
        // the package name through the intent if so.
        if (mPackageName == null) {
        if (mPackageName == null || (
                com.android.systemui.Flags.mediaProjectionRequestAttributionFix()
                        && getCallingPackage() == null)) {
            if (launchingIntent.hasExtra(EXTRA_PACKAGE_REUSING_GRANTED_CONSENT)) {
                mPackageName = launchingIntent.getStringExtra(
                        EXTRA_PACKAGE_REUSING_GRANTED_CONSENT);