Skip to content

Commit 083eb41

Browse files
author
kholiavko-roman
committed
FIX: "Illegal callback invocation from native module. This callback type only permits a single invocation from native code."
when "forceCloseDialog" called.
1 parent 486181e commit 083eb41

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

android/src/main/java/com/showlocationservicesdialogbox/LocationServicesDialogBoxModule.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ public void checkLocationServicesIsEnabled(ReadableMap configMap, Promise promis
4949
@ReactMethod
5050
public void forceCloseDialog() {
5151
if (alertDialog != null && promiseCallback != null) {
52-
promiseCallback.reject(new Throwable("disabled"));
5352
alertDialog.cancel();
5453
}
5554
}

0 commit comments

Comments
 (0)