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

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

am 0b823acf: am 96f5d2de: Always show error dialog for other profiles

* commit '0b823acf532c41175bcc6c06532fec7cbfbcd26b':
  Always show error dialog for other profiles
parents a42304f4 58edf49c
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);