libgdx / gdx-pay

A libGDX cross-platform API for InApp purchasing.
Apache License 2.0
225 stars 83 forks source link

Question: why does PurchaseObserver.handleRestore have a break in example code? #136

Closed codeulike closed 5 years ago

codeulike commented 7 years ago

Hi just a quick question, re the 'example with resolvers' here: https://github.com/libgdx/gdx-pay/wiki/Integration-example-with-resolvers

The example PurchaseObserver.handleRestore loops through transactions but it breaks out of the loop if checkTransaction returns true. Why is that? Wont that mean skipping over the other transactions?

Regards

MrStahlfelge commented 5 years ago

Probably the example project this code was used from just had a single entitlement IAP.

The example will be removed soon and replaced by another one.