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

Android: Fix juce_product_unlocking

Fixing a regression introduced in da38c1ed.
This commit is contained in:
attila 2022-12-21 16:56:33 +01:00 committed by Attila Szarvas
parent e669fb117e
commit 84352ca05f

View file

@ -1012,32 +1012,32 @@ private:
return responseCode == 0;
}
void purchaseCompleted (jobject purchase, int responseCode)
static void purchaseCompleted (JNIEnv*, Pimpl& t, jobject purchase, int responseCode)
{
notifyListenersAboutPurchase (buildPurchase (LocalRef<jobject> { purchase }),
wasSuccessful (responseCode),
getStatusDescriptionFromResponseCode (responseCode));
t.notifyListenersAboutPurchase (buildPurchase (LocalRef<jobject> { purchase }),
wasSuccessful (responseCode),
getStatusDescriptionFromResponseCode (responseCode));
}
void purchaseConsumed (jstring productIdentifier, int responseCode)
static void purchaseConsumed (JNIEnv*, Pimpl& t, jstring productIdentifier, int responseCode)
{
notifyListenersAboutConsume (juceString (LocalRef<jstring> { productIdentifier }),
wasSuccessful (responseCode),
getStatusDescriptionFromResponseCode (responseCode));
t.notifyListenersAboutConsume (juceString (LocalRef<jstring> { productIdentifier }),
wasSuccessful (responseCode),
getStatusDescriptionFromResponseCode (responseCode));
}
void updateProductDetails (jobject productDetailsList)
static void updateProductDetails (JNIEnv*, Pimpl& t, jobject productDetailsList)
{
jassert (! productDetailsQueryCallbackQueue.empty());
productDetailsQueryCallbackQueue.front() (LocalRef<jobject> { productDetailsList });
productDetailsQueryCallbackQueue.pop();
jassert (! t.productDetailsQueryCallbackQueue.empty());
t.productDetailsQueryCallbackQueue.front() (LocalRef<jobject> { productDetailsList });
t.productDetailsQueryCallbackQueue.pop();
}
void updatePurchasesList (jobject purchasesList)
static void updatePurchasesList (JNIEnv*, Pimpl& t, jobject purchasesList)
{
jassert (! purchasesListQueryCallbackQueue.empty());
purchasesListQueryCallbackQueue.front() (LocalRef<jobject> { purchasesList });
purchasesListQueryCallbackQueue.pop();
jassert (! t.purchasesListQueryCallbackQueue.empty());
t.purchasesListQueryCallbackQueue.front() (LocalRef<jobject> { purchasesList });
t.purchasesListQueryCallbackQueue.pop();
}
//==============================================================================