diff options
| author | 2013-04-23 03:52:04 -0700 | |
|---|---|---|
| committer | 2013-04-23 03:52:04 -0700 | |
| commit | b2daf811cb39e8e38a31065c7ffb11d0926ffcef (patch) | |
| tree | 8d9163f5d2339a76dc6edb90411c591e28dda4d2 | |
| parent | 5fbf40b12863965d68a1759b639802c23c651235 (diff) | |
| parent | d52f2b14852c057fd8d94cebb7ddf8900ba1d232 (diff) | |
am d52f2b14: Merge "Listen for brightness dialog broadcasts from all users" into jb-mr2-dev
* commit 'd52f2b14852c057fd8d94cebb7ddf8900ba1d232':
Listen for brightness dialog broadcasts from all users
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/settings/SettingsUI.java | 3 |
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 f65123aefa61..1075a73c79ad 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) { |