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

Commit b078b2bc authored by Amith Yamasani's avatar Amith Yamasani
Browse files

Listen for brightness dialog broadcasts from all users

Fixes the problem where Settings->Display->Brightness for secondary users stopped
working after the reorganization of brightness dialog.

Bug: 8666220
Change-Id: I893954810f80383090733fc677266bfcad490703
parent 7f6fc129
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -25,6 +25,7 @@ import android.content.DialogInterface;
import android.content.Intent;
import android.content.IntentFilter;
import android.os.Handler;
import android.os.UserHandle;
import android.util.Slog;

import com.android.systemui.SystemUI;
@@ -66,7 +67,7 @@ public class SettingsUI extends SystemUI {
    public void start() {
        IntentFilter filter = new IntentFilter();
        filter.addAction(Intent.ACTION_SHOW_BRIGHTNESS_DIALOG);
        mContext.registerReceiver(mIntentReceiver, filter, null, mHandler);
        mContext.registerReceiverAsUser(mIntentReceiver, UserHandle.ALL, filter, null, mHandler);
    }

    public void dump(FileDescriptor fd, PrintWriter pw, String[] args) {