Skip to content
Commit 7ebffbe2 authored by Kwangkyu Park's avatar Kwangkyu Park Committed by Emilian Peev
Browse files

Camera: Address device state listener delay

For the long running process with the frequent camera characteristic
acquiring, the size of mDeviceStateListeners could increase
significantly. This could cause a delay when removeAll() is invoked from
handleStateChange().

This change will address this by removing old listeners when we add a new one.

Bug: 288070122
Test: Manual test with a foldable device with frequent camera characteristic
acquiring

Change-Id: I84c807f00c876734df06d244675e39e9cfc868a2
parent 4694c51d
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