commit | 6cc82a192f2577fdebfd5c7402c9dac91b817bfb | [log] [tgz] |
---|---|---|
author | Lucas Dupin <dupin@google.com> | Thu Jan 30 14:33:23 2020 -0800 |
committer | Lucas Dupin <dupin@google.com> | Thu Jan 30 14:33:23 2020 -0800 |
tree | 2e237ab690f48ca28bb332093921833d771f8285 | |
parent | 28790c01523caa8fe5996b65e1d2a048bf662a8b [diff] |
Register broadcast for all users Otherwise NLUM might not receive events after switching to guest. Bug: 145135488 Test: manually switch users Change-Id: If0e0ab2161571fe561bc9460788efbcbb7050621
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/NotificationLockscreenUserManagerImpl.java b/packages/SystemUI/src/com/android/systemui/statusbar/NotificationLockscreenUserManagerImpl.java index 976531d8b..72bebf5 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/NotificationLockscreenUserManagerImpl.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/NotificationLockscreenUserManagerImpl.java
@@ -280,7 +280,8 @@ filter.addAction(Intent.ACTION_USER_UNLOCKED); filter.addAction(Intent.ACTION_MANAGED_PROFILE_AVAILABLE); filter.addAction(Intent.ACTION_MANAGED_PROFILE_UNAVAILABLE); - mBroadcastDispatcher.registerReceiver(mBaseBroadcastReceiver, filter); + mBroadcastDispatcher.registerReceiver(mBaseBroadcastReceiver, filter, + null /* executor */, UserHandle.ALL); IntentFilter internalFilter = new IntentFilter(); internalFilter.addAction(NOTIFICATION_UNLOCKED_BY_WORK_CHALLENGE_ACTION);