Skip to content
Commit 345a4245 authored by Austin Borger's avatar Austin Borger
Browse files

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
parent 9a5bc75e
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