summaryrefslogtreecommitdiffstats
path: root/packages/SystemUI/src/com/android/systemui/settings
diff options
context:
space:
mode:
authorAmith Yamasani <yamasani@google.com>2013-04-22 09:27:08 -0700
committerAmith Yamasani <yamasani@google.com>2013-04-22 09:27:08 -0700
commitb078b2bc8ac167f002d604d309fa99d7cb866714 (patch)
treeaf4ff17348d689772fa4fffcd0d2cf82933c87d5 /packages/SystemUI/src/com/android/systemui/settings
parent7f6fc12997d67ae80a044bc0b4cc17797d887911 (diff)
downloadframeworks_base-b078b2bc8ac167f002d604d309fa99d7cb866714.zip
frameworks_base-b078b2bc8ac167f002d604d309fa99d7cb866714.tar.gz
frameworks_base-b078b2bc8ac167f002d604d309fa99d7cb866714.tar.bz2
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
Diffstat (limited to 'packages/SystemUI/src/com/android/systemui/settings')
-rw-r--r--packages/SystemUI/src/com/android/systemui/settings/SettingsUI.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/settings/SettingsUI.java b/packages/SystemUI/src/com/android/systemui/settings/SettingsUI.java
index f65123a..1075a73 100644
--- a/packages/SystemUI/src/com/android/systemui/settings/SettingsUI.java
+++ b/packages/SystemUI/src/com/android/systemui/settings/SettingsUI.java
@@ -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) {