Allows auto dismissing of bluetooth activation dialogs
Create a new overlay boolean that allows products (like Android@Home ones that have no or minimal display) to not bring up the bluetooth activation confirmation dialog. Change-Id: Ib76a26d440ede34cc8a41ffc8b680ca2b20b38ca Signed-off-by: Mike J. Chen <mjchen@google.com>
This commit is contained in:
committed by
Mike Lockwood
parent
0db01ad838
commit
31c5ec8202
@@ -173,6 +173,11 @@ public class RequestPermissionActivity extends Activity implements
|
||||
|
||||
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
|
||||
|
@@ -62,6 +62,12 @@ public class RequestPermissionHelperActivity extends AlertActivity implements
|
||||
}
|
||||
|
||||
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() {
|
||||
|
Reference in New Issue
Block a user