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

Commit c6308f4d authored by BK Choi's avatar BK Choi Committed by Android (Google) Code Review
Browse files

Merge "Exclude a private display from...

Merge "Exclude a private display from getDisplayIdsForStartingVisibleBackgroundUsers" into udc-qpr-dev
parents 4ee4adbb ebeb6ced
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -19518,7 +19518,7 @@ public class ActivityManagerService extends IActivityManager.Stub
            for (Display display : allDisplays) {
                int displayId = display.getDisplayId();
                // TODO(b/247592632): check other properties like isSecure or proper display type
                if (display.isValid()
                if (display.isValid() && ((display.getFlags() & Display.FLAG_PRIVATE) == 0)
                        && (allowOnDefaultDisplay || displayId != Display.DEFAULT_DISPLAY)) {
                    displayIds[numberValidDisplays++] = displayId;
                }