OSDN Git Service

Remove lousy synchronization
authorLucas Dupin <dupin@google.com>
Tue, 14 May 2019 00:54:25 +0000 (17:54 -0700)
committerLucas Dupin <dupin@google.com>
Tue, 14 May 2019 01:02:38 +0000 (18:02 -0700)
commita3420c7f707b07e33bdb9f5aba65f3b8f9d72911
tree753ca8d787053d6c97b74988b4e472f23b7897dd
parent99a61d3b5856e46540757df53db91c28611ac412
Remove lousy synchronization

An @AnyThread method was being used for syncrhonizing user switching
states without having a synchronization block. We were also relying
on callbacks that might be unordered, especially during user switching.

Fixes: 131914931
Test: switch between users that have different dark mode settings
Change-Id: Ie85c2a2a087edcd35c825caf8193aeabb990ea6c
packages/SystemUI/src/com/android/keyguard/KeyguardUpdateMonitor.java
packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarNotificationPresenter.java