From 39f59786fab78b92083c41b6f85658e96b5d3a51 Mon Sep 17 00:00:00 2001 From: PouleyKetchoupp Date: Sun, 24 May 2020 13:26:18 +0200 Subject: Use long instead of int for object id in Android java wrapper Using int for 64-bit values might cause issues with objects not found in ObjectDB when the id is truncated. --- .../java/org/godotengine/godot/plugin/payment/GodotPayment.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'platform/android/java/plugins/godotpayment') 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 ded7f0a9aa..e2b12c94a4 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 @@ -48,7 +48,7 @@ import org.json.JSONException; import org.json.JSONObject; public class GodotPayment extends GodotPlugin { - private Integer purchaseCallbackId = 0; + private Long purchaseCallbackId = 0L; private String accessToken; private String purchaseValidationUrlPrefix; private String transactionId; @@ -129,11 +129,11 @@ public class GodotPayment extends GodotPlugin { GodotLib.calldeferred(purchaseCallbackId, "purchase_owned", new Object[] { sku }); } - public int getPurchaseCallbackId() { + public long getPurchaseCallbackId() { return purchaseCallbackId; } - public void setPurchaseCallbackId(int purchaseCallbackId) { + public void setPurchaseCallbackId(long purchaseCallbackId) { this.purchaseCallbackId = purchaseCallbackId; } -- cgit v1.2.3