Merge "Use activity for brightness dialog" into lmp-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
68419fca2d
@@ -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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user