Fix iterating over cameras in media profiles initialization
The loop used to go through camera id indexes
while calling it `cameraId`. This caused a crash
and bootloop if an index was not present in
`mCameraIds` (e.g. if `mCameraIds` is an array
of one element other than zero).
Bug: 269194950
Test: presubmit
Change-Id: I12b3058b0f1728d0127873c7362dceef9ddd3cd9
Signed-off-by: Roman Kiryanov <rkir@google.com>
Loading
Please register or sign in to comment