We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 038619b commit 0e84f77Copy full SHA for 0e84f77
AndroidSDK/src/com/leanplum/LocationManagerImplementation.java
@@ -241,7 +241,11 @@ private void startLocationClient() {
241
242
private boolean isPermissionGranted() {
243
Context context = Leanplum.getContext();
244
- return context.checkCallingOrSelfPermission(PERMISSION) == PackageManager.PERMISSION_GRANTED;
+ try {
245
+ return context.checkCallingOrSelfPermission(PERMISSION) == PackageManager.PERMISSION_GRANTED;
246
+ } catch (RuntimeException ignored) {
247
+ return false;
248
+ }
249
}
250
251
private boolean isMetaDataSet() {
0 commit comments