[Safer intents] Settings misc
To avoid implicit intents, make intents launch explicitly. Test: build Bug: 323061508 Change-Id: Ie19cbceb89842a75a180898abcce81b63c18d46c
This commit is contained in:
@@ -31,7 +31,8 @@ public class BrightnessPreference extends Preference {
|
||||
|
||||
@Override
|
||||
protected void onClick() {
|
||||
getContext().startActivityAsUser(new Intent(Intent.ACTION_SHOW_BRIGHTNESS_DIALOG),
|
||||
getContext().startActivityAsUser(new Intent(Intent.ACTION_SHOW_BRIGHTNESS_DIALOG)
|
||||
.setPackage(Utils.SYSTEMUI_PACKAGE_NAME),
|
||||
UserHandle.CURRENT_OR_SELF);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user