Add permission rationale for camera and Bluetooth combined

This commit is contained in:
Torsten Grote
2022-09-29 10:16:38 -03:00
parent 0a906998fe
commit 52809d8f2d
2 changed files with 8 additions and 1 deletions

View File

@@ -103,6 +103,11 @@ class AddNearbyContactPermissionManager {
showRationale(ctx, R.string.permission_camera_location_title, showRationale(ctx, R.string.permission_camera_location_title,
R.string.permission_camera_location_request_body, R.string.permission_camera_location_request_body,
this::requestPermissions); this::requestPermissions);
} else if (cameraPermission == SHOW_RATIONALE &&
bluetoothPermissions == SHOW_RATIONALE) {
showRationale(ctx, R.string.permission_camera_bluetooth_title,
R.string.permission_camera_bluetooth_request_body,
this::requestPermissions);
} else if (cameraPermission == SHOW_RATIONALE) { } else if (cameraPermission == SHOW_RATIONALE) {
showRationale(ctx, R.string.permission_camera_title, showRationale(ctx, R.string.permission_camera_title,
R.string.permission_camera_request_body, R.string.permission_camera_request_body,

View File

@@ -778,6 +778,8 @@
<string name="permission_location_request_body">To discover Bluetooth devices, Briar needs permission to access your location.\n\nBriar does not store your location or share it with anyone.</string> <string name="permission_location_request_body">To discover Bluetooth devices, Briar needs permission to access your location.\n\nBriar does not store your location or share it with anyone.</string>
<string name="permission_camera_location_title">Camera and location</string> <string name="permission_camera_location_title">Camera and location</string>
<string name="permission_camera_location_request_body">To scan the QR code, Briar needs access to the camera.\n\nTo discover Bluetooth devices, Briar needs permission to access your location.\n\nBriar does not store your location or share it with anyone.</string> <string name="permission_camera_location_request_body">To scan the QR code, Briar needs access to the camera.\n\nTo discover Bluetooth devices, Briar needs permission to access your location.\n\nBriar does not store your location or share it with anyone.</string>
<string name="permission_camera_bluetooth_title">Camera and nearby devices</string>
<string name="permission_camera_bluetooth_request_body">To scan the QR code, Briar needs access to the camera.\n\nTo discover Bluetooth devices, Briar needs permission to find and connect to nearby devices.</string>
<string name="permission_camera_denied_body">You have denied access to the camera, but adding contacts requires using the camera.\n\nPlease consider granting access.</string> <string name="permission_camera_denied_body">You have denied access to the camera, but adding contacts requires using the camera.\n\nPlease consider granting access.</string>
<string name="permission_location_denied_body">You have denied access to your location, but Briar needs this permission to discover Bluetooth devices.\n\nPlease consider granting access.</string> <string name="permission_location_denied_body">You have denied access to your location, but Briar needs this permission to discover Bluetooth devices.\n\nPlease consider granting access.</string>
<string name="permission_location_setting_title">Location setting</string> <string name="permission_location_setting_title">Location setting</string>