Skip to content
Commit 9ad17851 authored by Riddle Hsu's avatar Riddle Hsu
Browse files

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
parent aecff3d7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment