Correct size compat mode condition of aspect ratio
This fixes the case: when both min, max aspect ratio are set and the current aspect ratio reaches the max, and the size doesn't fill the parent, it will always be size compact mode. By filtering out the simple conditions first, the checking of fixed aspect ratio only applies to at least one side matches parent, that also makes the logic better understood. Bug: 112288258 Test: atest ActivityRecordTests# \ testSizeCompatMode_FixedAspectRatioBoundsWithDecor Change-Id: I82900ac940bf31c3ac2b87f7b133ba98aa2afe99
Loading
Please register or sign in to comment