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

Commit 58edf49c authored by Robin Lee's avatar Robin Lee Committed by Android Git Automerger
Browse files

am 96f5d2de: Always show error dialog for other profiles

* commit '96f5d2de8d267a62b461182fa9ba354d68680723':
  Always show error dialog for other profiles
parents c530f105 a0995ab8
Loading
Loading
Loading
Loading
+7 −3
Original line number Diff line number Diff line
@@ -1206,9 +1206,13 @@ public final class ActivityManagerService extends ActivityManagerNative
                        }
                        return;
                    }
                    if (!showBackground && UserHandle.getAppId(proc.uid)
                            >= Process.FIRST_APPLICATION_UID && proc.userId != mCurrentUserId
                            && proc.pid != MY_PID) {
                    boolean isBackground = (UserHandle.getAppId(proc.uid)
                            >= Process.FIRST_APPLICATION_UID
                            && proc.pid != MY_PID);
                    for (int userId : mCurrentProfileIds) {
                        isBackground &= (proc.userId != userId);
                    }
                    if (isBackground && !showBackground) {
                        Slog.w(TAG, "Skipping crash dialog of " + proc + ": background");
                        if (res != null) {
                            res.set(0);