mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-11 18:29:05 +01:00
Merge branch '2448-bluetooth-permission-prompt' into 'master'
Only show Bluetooth permission prompt when Bluetooth is toggled Closes #2448 See merge request briar/briar!1812
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