diff options
author | Alan Viverette <alanv@google.com> | 2014-07-14 15:05:55 -0700 |
---|---|---|
committer | Alan Viverette <alanv@google.com> | 2014-07-14 15:07:34 -0700 |
commit | 97e5aac732d76cf10f398a84c61e252047d9bade (patch) | |
tree | bc761dbed8d33f717b8f3a647dbf31da5b960bf6 /src/com/android/settings/BrightnessPreference.java | |
parent | 218f99c0e56bf43d66690d92a151efcb711d2fcd (diff) | |
download | packages_apps_Settings-97e5aac732d76cf10f398a84c61e252047d9bade.tar.gz packages_apps_Settings-97e5aac732d76cf10f398a84c61e252047d9bade.tar.bz2 packages_apps_Settings-97e5aac732d76cf10f398a84c61e252047d9bade.zip |
Use activity for brightness dialog
BUG: 15512088
Change-Id: Ibe38525b78d06e97cdf7e6369ca8179ab63e59d7
Diffstat (limited to 'src/com/android/settings/BrightnessPreference.java')
-rw-r--r-- | src/com/android/settings/BrightnessPreference.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/settings/BrightnessPreference.java b/src/com/android/settings/BrightnessPreference.java index 6d3b81b10..7d60e7ff2 100644 --- a/src/com/android/settings/BrightnessPreference.java +++ b/src/com/android/settings/BrightnessPreference.java @@ -30,7 +30,7 @@ public class BrightnessPreference extends Preference { @Override protected void onClick() { - Intent intent = new Intent(Intent.ACTION_SHOW_BRIGHTNESS_DIALOG); - getContext().sendBroadcastAsUser(intent, UserHandle.CURRENT_OR_SELF); + getContext().startActivityAsUser(new Intent(Intent.ACTION_SHOW_BRIGHTNESS_DIALOG), + UserHandle.CURRENT_OR_SELF); } } |