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

Commit 1c0c8a4d authored by Ricky Wai's avatar Ricky Wai Committed by android-build-merger
Browse files

Merge "Apply app switching protection on AppTask.moveToFront()" into qt-dev am: 89082d70

am: bd382162

Change-Id: I930b0f8500280ac9141f1e8576622b567e68fafc
parents ce7e798e bd382162
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -106,6 +106,10 @@ class AppTaskImpl extends IAppTask.Stub {
        final long origId = Binder.clearCallingIdentity();
        try {
            synchronized (mService.mGlobalLock) {
                if (!mService.checkAppSwitchAllowedLocked(callingPid, callingUid, -1, -1,
                        "Move to front")) {
                    return;
                }
                WindowProcessController callerApp = null;
                if (appThread != null) {
                    callerApp = mService.getProcessController(appThread);