1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

InAppPurchases: Fix crash when consuming purchases on Android

This commit is contained in:
reuk 2022-07-14 15:19:01 +01:00
parent 5cf1a964fc
commit 934403b7ef
No known key found for this signature in database
GPG key ID: FCB43929F012EE5C

View file

@ -545,10 +545,10 @@ private:
return;
}
getEnv()->CallObjectMethod (billingClient,
JuceBillingClient.consumePurchase,
LocalRef<jstring> { javaString (productIdentifier) }.get(),
LocalRef<jstring> { javaString (purchaseToken) }.get());
getEnv()->CallVoidMethod (billingClient,
JuceBillingClient.consumePurchase,
LocalRef<jstring> { javaString (productIdentifier) }.get(),
LocalRef<jstring> { javaString (purchaseToken) }.get());
}
//==============================================================================