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
Loading
Please register or sign in to comment