Loading packages/SystemUI/src/com/android/systemui/media/MediaProjectionPermissionActivity.java +2 −3 Original line number Diff line number Diff line Loading @@ -98,12 +98,11 @@ public class MediaProjectionPermissionActivity extends Activity final Intent launchingIntent = getIntent(); mReviewGrantedConsentRequired = launchingIntent.getBooleanExtra( EXTRA_USER_REVIEW_GRANTED_CONSENT, false); mPackageName = getCallingPackage(); mPackageName = getLaunchedFromPackage(); // 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 (getCallingPackage() == null) { if (launchingIntent.hasExtra(EXTRA_PACKAGE_REUSING_GRANTED_CONSENT)) { mPackageName = launchingIntent.getStringExtra( EXTRA_PACKAGE_REUSING_GRANTED_CONSENT); Loading Loading
packages/SystemUI/src/com/android/systemui/media/MediaProjectionPermissionActivity.java +2 −3 Original line number Diff line number Diff line Loading @@ -98,12 +98,11 @@ public class MediaProjectionPermissionActivity extends Activity final Intent launchingIntent = getIntent(); mReviewGrantedConsentRequired = launchingIntent.getBooleanExtra( EXTRA_USER_REVIEW_GRANTED_CONSENT, false); mPackageName = getCallingPackage(); mPackageName = getLaunchedFromPackage(); // 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 (getCallingPackage() == null) { if (launchingIntent.hasExtra(EXTRA_PACKAGE_REUSING_GRANTED_CONSENT)) { mPackageName = launchingIntent.getStringExtra( EXTRA_PACKAGE_REUSING_GRANTED_CONSENT); Loading