mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-12 02:39:05 +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) {
|
||||
if (enable && SDK_INT >= 31 && !areBluetoothPermissionsGranted(this)) {
|
||||
if (transportId.equals(BluetoothConstants.ID) && enable
|
||||
&& SDK_INT >= 31 && !areBluetoothPermissionsGranted(this)) {
|
||||
if (shouldShowRequestPermissionRationale(BLUETOOTH_CONNECT)) {
|
||||
showRationale(this, R.string.permission_bluetooth_title,
|
||||
R.string.permission_bluetooth_body,
|
||||
|
||||
Reference in New Issue
Block a user