Merge "Fixed a bug where the notifications were not updated when switching users" into qt-dev

This commit is contained in:
Selim Cinek
2019-04-29 17:33:56 +00:00
committed by Android (Google) Code Review

View File

@@ -115,8 +115,10 @@ public class NotificationLockscreenUserManagerImpl implements
updateLockscreenNotificationSetting();
updatePublicMode();
mPresenter.onUserSwitched(mCurrentUserId);
// The filtering needs to happen before the update call below in order to make sure
// the presenter has the updated notifications from the new user
getEntryManager().getNotificationData().filterAndSort();
mPresenter.onUserSwitched(mCurrentUserId);
for (UserChangedListener listener : mListeners) {
listener.onUserChanged(mCurrentUserId);