summaryrefslogtreecommitdiff
path: root/platform/android/java/plugins
diff options
context:
space:
mode:
authorFredia Huya-Kouadio <fhuyakou@gmail.com>2020-06-15 09:17:43 -0700
committerFredia Huya-Kouadio <fhuyakou@gmail.com>2020-06-16 09:25:09 -0700
commit6daf9b78af841602e6f80986208c681ced1bae91 (patch)
tree67998d523428a9a90336f9a15e4a6f7b16d36bc7 /platform/android/java/plugins
parent09566a96b10fff62eadeea9fe32782aeafc4993e (diff)
Clean up the `GodotPlugin` public API.
Diffstat (limited to 'platform/android/java/plugins')
-rw-r--r--platform/android/java/plugins/godotpayment/src/main/java/org/godotengine/godot/plugin/payment/GodotPayment.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/platform/android/java/plugins/godotpayment/src/main/java/org/godotengine/godot/plugin/payment/GodotPayment.java b/platform/android/java/plugins/godotpayment/src/main/java/org/godotengine/godot/plugin/payment/GodotPayment.java
index 6447a9ec3f..bf8e485d96 100644
--- a/platform/android/java/plugins/godotpayment/src/main/java/org/godotengine/godot/plugin/payment/GodotPayment.java
+++ b/platform/android/java/plugins/godotpayment/src/main/java/org/godotengine/godot/plugin/payment/GodotPayment.java
@@ -67,7 +67,7 @@ public class GodotPayment extends GodotPlugin implements PurchasesUpdatedListene
super(godot);
billingClient = BillingClient
- .newBuilder(getGodot())
+ .newBuilder(getActivity())
.enablePendingPurchases()
.setListener(this)
.build();
@@ -182,7 +182,7 @@ public class GodotPayment extends GodotPlugin implements PurchasesUpdatedListene
.setSkuDetails(skuDetails)
.build();
- BillingResult result = billingClient.launchBillingFlow(getGodot(), purchaseParams);
+ BillingResult result = billingClient.launchBillingFlow(getActivity(), purchaseParams);
Dictionary returnValue = new Dictionary();
if (result.getResponseCode() == BillingClient.BillingResponseCode.OK) {