Fix android payment logical error
getting sku detail runs only if mod != 0 which means querying 20*n will not get sku details. referenced from https://github.com/googlesamples/android-play-billing/blob/master/TrivialDrive/app/src/main/java/com/example/android/trivialdrivesample/util/IabHelper.java#L1029-L1062
This commit is contained in:
parent
d801ff2b3d
commit
209f61b6d4
|
@ -355,7 +355,7 @@ public class PaymentsManager {
|
||||||
tempList.add(s);
|
tempList.add(s);
|
||||||
}
|
}
|
||||||
packs.add(tempList);
|
packs.add(tempList);
|
||||||
|
}
|
||||||
for (ArrayList<String> skuPartList : packs) {
|
for (ArrayList<String> skuPartList : packs) {
|
||||||
Bundle querySkus = new Bundle();
|
Bundle querySkus = new Bundle();
|
||||||
querySkus.putStringArrayList("ITEM_ID_LIST", skuPartList);
|
querySkus.putStringArrayList("ITEM_ID_LIST", skuPartList);
|
||||||
|
@ -385,7 +385,6 @@ public class PaymentsManager {
|
||||||
}
|
}
|
||||||
godotPaymentV3.completeSkuDetail();
|
godotPaymentV3.completeSkuDetail();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
})).start();
|
})).start();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue