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

Commit 64df53c1 authored by Fabian Kozynski's avatar Fabian Kozynski Committed by Android (Google) Code Review
Browse files

Merge "CurrentUserTracker#UserReceiver listen USER_ALL"

parents 9f938a6d 930f2ad1
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -21,6 +21,7 @@ import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.os.UserHandle;

import com.android.internal.annotations.VisibleForTesting;
import com.android.systemui.broadcast.BroadcastDispatcher;
@@ -97,7 +98,7 @@ public abstract class CurrentUserTracker {
            if (!mReceiverRegistered) {
                mCurrentUserId = ActivityManager.getCurrentUser();
                IntentFilter filter = new IntentFilter(Intent.ACTION_USER_SWITCHED);
                mBroadcastDispatcher.registerReceiver(this, filter);
                mBroadcastDispatcher.registerReceiver(this, filter, null, UserHandle.ALL);
                mReceiverRegistered = true;
            }
        }