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:
parent
e669fb117e
commit
84352ca05f
1 changed files with 16 additions and 16 deletions
|
|
@ -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();
|
||||
}
|
||||
|
||||
//==============================================================================
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue