Merge "Unlocked access of mServices is bad." into nyc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
d9599faf6b
@@ -3813,8 +3813,10 @@ public class NotificationManagerService extends SystemService {
|
||||
|
||||
@Override
|
||||
public void onUserSwitched(int user) {
|
||||
for (ManagedServiceInfo info : mServices) {
|
||||
unregisterService(info.service, info.userid);
|
||||
synchronized (mNotificationList) {
|
||||
for (ManagedServiceInfo info : mServices) {
|
||||
unregisterService(info.service, info.userid);
|
||||
}
|
||||
}
|
||||
registerRanker();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user