summaryrefslogtreecommitdiff
path: root/libs/androidfw/ApkParsing.cpp
diff options
context:
space:
mode:
author Eghosa Ewansiha-Vlachavas <eevlachavas@google.com> 2023-10-24 11:19:35 +0000
committer Eghosa Ewansiha-Vlachavas <eevlachavas@google.com> 2023-10-24 13:42:03 +0000
commit5d6321ed25c0c97ef3ad340eb40393a99f7a0ba7 (patch)
tree29414087a5d16be7ce543116f1644efc11f31a11 /libs/androidfw/ApkParsing.cpp
parent65c80f3144d300d6ed4695fb13448ebaedb61cd8 (diff)
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
Diffstat (limited to 'libs/androidfw/ApkParsing.cpp')
0 files changed, 0 insertions, 0 deletions