Run addUidToObserver and removeUidFromObserver on the handler thread.
If we're in dispatchUidsChanged while another thread is calling addUidToObserver or removeUidFromObserver, there will be two active broadcasts for mUidObservers. Move this processing to the handler thread to eliminate the possibility of this race condition. Change-Id: I9d64978415ebb42f194936ec56ba9933ed1533e7 Bug: 285982408 Test: Ran testCamera2AccessCallbackInSplitMode
Loading
Please register or sign in to comment