Skip to content

Commit 530876b

Browse files
jennantillajinliu9508
authored andcommitted
Remove early return for requestPermission
Since isShared now defaults to false, remove early return and add logging to update isShared to true.
1 parent e67d0f4 commit 530876b

File tree

1 file changed

+1
-1
lines changed
  • OneSignalSDK/onesignal/location/src/main/java/com/onesignal/location/internal

1 file changed

+1
-1
lines changed

OneSignalSDK/onesignal/location/src/main/java/com/onesignal/location/internal/LocationManager.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ internal class LocationManager(
7676
var result = false
7777
withContext(Dispatchers.Main) {
7878
if (!isShared) {
79-
return@withContext false
79+
Logging.error("Location permissions must be granted by setting isShared to true")
8080
}
8181

8282
val hasFinePermissionGranted =

0 commit comments

Comments
 (0)