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

Skip to content
Commit 5d6321ed authored by Eghosa Ewansiha-Vlachavas's avatar Eghosa Ewansiha-Vlachavas
Browse files

Don't reassign `desiredAspectRatio` parameter in`applyAspectRatio`

`ActivityRecord.applyAspectRatio` receives `desiredAspectRatio` as an
input parameter but reassigns it values multiple times within the
method. To remove the input parameter reassignment and preserve the
original value of `desiredAspectRatio`, replace its use with a local
variable which will be assigned the value of `desiredAspectRatio` at
the start.

Fix: 287239360
Test: atest WmTests:ActivityRecordTest
Change-Id: Ib78886883fe848d680adb9fcfe484097453e1eae
parent 65c80f31
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