am 31c5ec82: Allows auto dismissing of bluetooth activation dialogs
* commit '31c5ec82021271f2e1745a2de37c543e67dcec17': Allows auto dismissing of bluetooth activation dialogs
This commit is contained in:
@@ -25,4 +25,8 @@
|
|||||||
|
|
||||||
<!-- Display additional System Update menu if true -->
|
<!-- Display additional System Update menu if true -->
|
||||||
<bool name="config_additional_system_update_setting_enable">false</bool>
|
<bool name="config_additional_system_update_setting_enable">false</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>
|
</resources>
|
||||||
|
|||||||
@@ -173,6 +173,11 @@ public class RequestPermissionActivity extends Activity implements
|
|||||||
|
|
||||||
mDialog = builder.create();
|
mDialog = builder.create();
|
||||||
mDialog.show();
|
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
|
@Override
|
||||||
|
|||||||
@@ -62,6 +62,12 @@ public class RequestPermissionHelperActivity extends AlertActivity implements
|
|||||||
}
|
}
|
||||||
|
|
||||||
createDialog();
|
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() {
|
void createDialog() {
|
||||||
|
|||||||
Reference in New Issue
Block a user