summaryrefslogtreecommitdiffstats
path: root/policy
diff options
context:
space:
mode:
authorAlan Viverette <alanv@google.com>2014-07-14 16:19:38 -0700
committerAlan Viverette <alanv@google.com>2014-07-14 16:20:40 -0700
commit5a399490c2185ebfd458b1a1d9394f3a68c5fde2 (patch)
treef4823567419f609f8e45282ec1e0ce9107c2519a /policy
parenta5a2cf419d72b28d0ce3948199d6f6874d6dbf9b (diff)
downloadframeworks_base-5a399490c2185ebfd458b1a1d9394f3a68c5fde2.zip
frameworks_base-5a399490c2185ebfd458b1a1d9394f3a68c5fde2.tar.gz
frameworks_base-5a399490c2185ebfd458b1a1d9394f3a68c5fde2.tar.bz2
Use activity for brightness dialog
Also fixes brightness controller failure to unregister callbacks. BUG: 15512088 Change-Id: Ia665e006d93391d5a66d4ace614660c4e6d2d5b5
Diffstat (limited to 'policy')
-rw-r--r--policy/src/com/android/internal/policy/impl/PhoneWindowManager.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java b/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
index ef15a80..c892a47 100644
--- a/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
+++ b/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
@@ -2327,8 +2327,8 @@ public class PhoneWindowManager implements WindowManagerPolicy {
Settings.System.putIntForUser(mContext.getContentResolver(),
Settings.System.SCREEN_BRIGHTNESS, brightness,
UserHandle.USER_CURRENT_OR_SELF);
- Intent intent = new Intent(Intent.ACTION_SHOW_BRIGHTNESS_DIALOG);
- mContext.sendBroadcastAsUser(intent, UserHandle.CURRENT_OR_SELF);
+ mContext.startActivityAsUser(new Intent(Intent.ACTION_SHOW_BRIGHTNESS_DIALOG),
+ UserHandle.CURRENT_OR_SELF);
}
return -1;
} else if (keyCode == KeyEvent.KEYCODE_META_LEFT) {