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

Commit e665970d authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Ensure size-compat check is correct in LaunchParamsModifier"

parents 99801ee1 ec22df3b
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -6569,7 +6569,12 @@ final class ActivityRecord extends WindowToken implements WindowManagerService.A
        }
        return !isResizeable() && (info.isFixedOrientation() || info.hasFixedAspectRatio())
                // The configuration of non-standard type should be enforced by system.
                && isActivityTypeStandard()
                // {@link WindowConfiguration#ACTIVITY_TYPE_STANDARD} is set when this activity is
                // added to a task, but this function is called when resolving the launch params, at
                // which point, the activity type is still undefined if it will be standard.
                // For other non-standard types, the type is set in the constructor, so this should
                // not be a problem.
                && isActivityTypeStandardOrUndefined()
                && !mAtmService.mForceResizableActivities;
    }