1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-08 12:40:44 +00:00

Clean up the GodotPlugin public API.

This commit is contained in:
Fredia Huya-Kouadio
2020-06-15 09:17:43 -07:00
parent 09566a96b1
commit 6daf9b78af
3 changed files with 17 additions and 7 deletions

View File

@@ -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) {