a/frameworks/base/packages/SystemUI/src/com/android/systemui/media/MediaProjectionPermissionActivity.java
+++ b/frameworks/base/packages/SystemUI/src/com/android/systemui/media/MediaProjectionPermissionActivity.java
@@ -81,9 +81,12 @@ public class MediaProjectionPermissionActivity extends Activity
}
try {
+ Intent intent = getMediaProjectionIntent(mUid, mPackageName,true);
+
if (mService.hasProjectionPermission(mUid, mPackageName)) {
- setResult(RESULT_OK, getMediaProjectionIntent(mUid, mPackageName,
- false /*permanentGrant*/));
+ // setResult(RESULT_OK, getMediaProjectionIntent(mUid, mPackageName,
+ // false /*permanentGrant*/));
+ setResult(RESULT_OK,intent);
finish();
return;
}
a/frameworks/base/packages/SystemUI/src/com/android/systemui/media/MediaProjectionPermissionActivity.java
+++ b/frameworks/base/packages/SystemUI/src/com/android/systemui/media/MediaProjectionPermissionActivity.java
@@ -81,9 +81,12 @@ public class MediaProjectionPermissionActivity extends Activity
}
try {
+ Intent intent = getMediaProjectionIntent(mUid, mPackageName,true);
+
if (mService.hasProjectionPermission(mUid, mPackageName)) {
- setResult(RESULT_OK, getMediaProjectionIntent(mUid, mPackageName,
- false /*permanentGrant*/));
+ // setResult(RESULT_OK, getMediaProjectionIntent(mUid, mPackageName,
+ // false /*permanentGrant*/));
+ setResult(RESULT_OK,intent);
finish();
return;
}
举报