From 6daf9b78af841602e6f80986208c681ced1bae91 Mon Sep 17 00:00:00 2001 From: Fredia Huya-Kouadio Date: Mon, 15 Jun 2020 09:17:43 -0700 Subject: Clean up the `GodotPlugin` public API. --- .../main/java/org/godotengine/godot/plugin/payment/GodotPayment.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'platform/android/java/plugins') 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) { -- cgit v1.2.3