mirror of
https://github.com/defold/extension-iap
synced 2025-09-28 17:42:18 +02:00
Fixed crash if buying when no listener was set
This commit is contained in:
@@ -67,7 +67,7 @@ public class IapGooglePlay implements Handler.Callback {
|
||||
private boolean autoFinishTransactions;
|
||||
|
||||
private static interface ISkuRequestListener {
|
||||
public void onProducts(int resultCode, JSONObject products);
|
||||
public void onProducts(int resultCode, JSONObject products);
|
||||
}
|
||||
|
||||
private static class SkuRequest {
|
||||
|
@@ -69,8 +69,8 @@ public class IapGooglePlayActivity extends Activity {
|
||||
}
|
||||
|
||||
private void buy(String product, String productType) {
|
||||
// Flush any pending items, in order to be able to buy the same (new) product again
|
||||
processPendingConsumables();
|
||||
// Flush any pending items, in order to be able to buy the same (new) product again
|
||||
processPendingConsumables();
|
||||
|
||||
try {
|
||||
Bundle buyIntentBundle = service.getBuyIntent(3, getPackageName(), product, productType, "");
|
||||
|
Reference in New Issue
Block a user