diff options
| author | 2022-09-16 10:07:57 +0000 | |
|---|---|---|
| committer | 2022-09-16 10:21:10 +0000 | |
| commit | 4469c2a06379c4c53f744add3091834047b20fe8 (patch) | |
| tree | f33882324a0619394cd818470c9498ddbc813841 /libs/androidfw/Util.cpp | |
| parent | af086389ff97ae070151e2a605e67960c84a2e3f (diff) | |
Use local status for convert profile
When converting and filtering the list of audio profile from native to Java, if we reuse the global jStatus for the profiles loop, a wrong value for the last element can propagate as the global return value. Using a local status fixes the issue.
Bug: 246759253
Change-Id: Ifd2bd3cb2b2252c08055c95375fe499e3f23ce02
Test: atest DirectAudioProfilesForAttributesTest
Diffstat (limited to 'libs/androidfw/Util.cpp')
0 files changed, 0 insertions, 0 deletions