Use activity for brightness dialog

BUG: 15512088
Change-Id: Ibe38525b78d06e97cdf7e6369ca8179ab63e59d7
This commit is contained in:
Alan Viverette
2014-07-14 15:05:55 -07:00
parent 218f99c0e5
commit 97e5aac732
2 changed files with 6 additions and 5 deletions

View File

@@ -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);
}
}