mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-16 20:59:54 +01:00
Only show Bluetooth permission prompt when Bluetooth is toggled.
This commit is contained in:
@@ -219,7 +219,8 @@ public class TransportsActivity extends BriarActivity {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void onClicked(TransportId transportId, boolean enable) {
|
private void onClicked(TransportId transportId, boolean enable) {
|
||||||
if (enable && SDK_INT >= 31 && !areBluetoothPermissionsGranted(this)) {
|
if (transportId.equals(BluetoothConstants.ID) && enable
|
||||||
|
&& SDK_INT >= 31 && !areBluetoothPermissionsGranted(this)) {
|
||||||
if (shouldShowRequestPermissionRationale(BLUETOOTH_CONNECT)) {
|
if (shouldShowRequestPermissionRationale(BLUETOOTH_CONNECT)) {
|
||||||
showRationale(this, R.string.permission_bluetooth_title,
|
showRationale(this, R.string.permission_bluetooth_title,
|
||||||
R.string.permission_bluetooth_body,
|
R.string.permission_bluetooth_body,
|
||||||
|
|||||||
Reference in New Issue
Block a user