diff options
| author | 2022-10-05 16:25:17 +0200 | |
|---|---|---|
| committer | 2022-10-05 14:30:47 +0000 | |
| commit | 90e2f37790afb51f35619f5024976688b98aae5d (patch) | |
| tree | f4e74eea4bb8de156c2baccc94abeb26470c50d1 /libs | |
| parent | 6bf944b758fdc8728c3ee2aee83a2379aa72cb2d (diff) | |
Initialize ContentObserver in startObserving().
This removes a race condition where ContentObserver is initialized
while mHandler is null which causes the ContentObserver#onChange() callback to run on a different thread and can cause an NPE.
Bug: 246843362
Test: manual
Test: atest BrightnessSynchronizerTest
Change-Id: Ib8e192c3961390ece721fa473d5c09323c30bafe
Diffstat (limited to 'libs')
0 files changed, 0 insertions, 0 deletions