Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b3cc87ac authored by Anthony Hugh's avatar Anthony Hugh
Browse files

Update user event listeners

UserGridRecyclerView doesn't need to be registered to so many user
change events.  This CL cleans up that list.

Bug: 142019015
Test: atest CarSettingsRoboTest
Test: Manually add/remove users and switch to users/guest from quick
settings user picker

Change-Id: Iff417591cf2d91add30bdb40881f6c504344b0ee
parent c7799159
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -183,11 +183,9 @@ public class UserGridRecyclerView extends RecyclerView {
        filter.addAction(Intent.ACTION_USER_ADDED);
        filter.addAction(Intent.ACTION_USER_INFO_CHANGED);
        filter.addAction(Intent.ACTION_USER_SWITCHED);
        filter.addAction(Intent.ACTION_USER_STOPPED);
        filter.addAction(Intent.ACTION_USER_UNLOCKED);
        mContext.registerReceiverAsUser(
                mUserUpdateReceiver,
                UserHandle.ALL,
                UserHandle.ALL, // Necessary because CarSystemUi lives in User 0
                filter,
                /* broadcastPermission= */ null,
                /* scheduler= */ null);