File tree Expand file tree Collapse file tree 1 file changed +12
-8
lines changed
app/src/main/java/com/fingerprintjs/android/fpjs_pro_demo Expand file tree Collapse file tree 1 file changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -46,14 +46,18 @@ class MainActivity : ComponentActivity() {
46
46
}
47
47
48
48
fun checkLocationPermissions () {
49
- if ((ActivityCompat .checkSelfPermission(
50
- this ,
51
- Manifest .permission.ACCESS_FINE_LOCATION ) ==
52
- PackageManager .PERMISSION_GRANTED ) ||
53
- (ActivityCompat .checkSelfPermission(
54
- this ,
55
- Manifest .permission.ACCESS_COARSE_LOCATION ) ==
56
- PackageManager .PERMISSION_GRANTED )
49
+ if ((
50
+ ActivityCompat .checkSelfPermission(
51
+ this ,
52
+ Manifest .permission.ACCESS_FINE_LOCATION
53
+ ) == PackageManager .PERMISSION_GRANTED
54
+ ) ||
55
+ (
56
+ ActivityCompat .checkSelfPermission(
57
+ this ,
58
+ Manifest .permission.ACCESS_COARSE_LOCATION
59
+ ) == PackageManager .PERMISSION_GRANTED
60
+ )
57
61
) {
58
62
// We have at least some location permission, so we can proceed
59
63
return
You can’t perform that action at this time.
0 commit comments