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

Commit 0ad8b2c2 authored by Marvin Ramin's avatar Marvin Ramin Committed by Automerger Merge Worker
Browse files

RESTRICT AUTOMERGE Use getLaunchedFromPackage instead of getCallingPackage am: 4ebc9c8d

parents 22f569dc 4ebc9c8d
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -60,11 +60,11 @@ public class MediaProjectionPermissionActivity extends Activity
    public void onCreate(Bundle icicle) {
        super.onCreate(icicle);

        mPackageName = getCallingPackage();
        mPackageName = getLaunchedFromPackage();
        IBinder b = ServiceManager.getService(MEDIA_PROJECTION_SERVICE);
        mService = IMediaProjectionManager.Stub.asInterface(b);

        if (mPackageName == null) {
        if (getCallingPackage() == null) {
            finish();
            return;
        }