Location Fine permission

This commit is contained in:
Aleksander Nowakowski
2020-01-27 13:23:13 +01:00
parent c1c9480725
commit 38b5bafe62
3 changed files with 4 additions and 4 deletions

View File

@@ -215,7 +215,7 @@ public class ScannerFragment extends DialogFragment {
* using class ScannerServiceParser
*/
private void startScan() {
// Since Android 6.0 we need to obtain either Manifest.permission.ACCESS_COARSE_LOCATION or Manifest.permission.ACCESS_FINE_LOCATION to be able to scan for
// Since Android 6.0 we need to obtain Manifest.permission.ACCESS_FINE_LOCATION to be able to scan for
// Bluetooth LE devices. This is related to beacons as proximity devices.
// On API older than Marshmallow the following code does nothing.
if (ContextCompat.checkSelfPermission(requireContext(), Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED) {