mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-02-24 04:00:59 +01:00
14 lines
791 B
Diff
14 lines
791 B
Diff
diff --git a/node_modules/react-native-iap/android/src/play/java/com/dooboolab/rniap/RNIapModule.kt b/node_modules/react-native-iap/android/src/play/java/com/dooboolab/rniap/RNIapModule.kt
|
|
index 70149d2..fc917f3 100644
|
|
--- a/node_modules/react-native-iap/android/src/play/java/com/dooboolab/rniap/RNIapModule.kt
|
|
+++ b/node_modules/react-native-iap/android/src/play/java/com/dooboolab/rniap/RNIapModule.kt
|
|
@@ -604,7 +604,7 @@ class RNIapModule(
|
|
isOfferPersonalized: Boolean, // New parameter in V5
|
|
promise: Promise,
|
|
) {
|
|
- val activity = currentActivity
|
|
+ val activity = reactApplicationContext.currentActivity
|
|
if (activity == null) {
|
|
promise.safeReject(PromiseUtils.E_UNKNOWN, "getCurrentActivity returned null")
|
|
return
|