<!-- Whether the power control widget is enabled for this device. Should be overridden for
specific product builds. -->
<bool name="has_powercontrol_widget">true</bool>
+ <!-- Whether the bluetooth activation confirmation dialogs should be auto dismissed.
+ Can be overridden for specific product builds. -->
+ <bool name="auto_confirm_bluetooth_activation_dialog">false</bool>
</resources>
mDialog = builder.create();
mDialog.show();
+
+ if (getResources().getBoolean(R.bool.auto_confirm_bluetooth_activation_dialog) == true) {
+ // dismiss dialog immediately if settings say so
+ onClick(null, DialogInterface.BUTTON_POSITIVE);
+ }
}
@Override
}
createDialog();
+
+ if (getResources().getBoolean(R.bool.auto_confirm_bluetooth_activation_dialog) == true) {
+ // dismiss dialog immediately if settings say so
+ onClick(null, BUTTON_POSITIVE);
+ dismiss();
+ }
}
void createDialog() {