Fixed sending feedback when IAB not available

This commit is contained in:
M66B 2015-11-25 09:29:03 +01:00
parent 532ce7432b
commit b00a284cb7
1 changed files with 2 additions and 6 deletions

View File

@ -113,10 +113,8 @@ public class IAB implements ServiceConnection {
Util.logBundle(bundle);
int response = (bundle == null ? -1 : bundle.getInt("RESPONSE_CODE", -1));
Log.i(TAG, "Response=" + getIABResult(response));
if (response != 0) {
Util.sendCrashReport(new IllegalStateException(getIABResult(response)), context);
if (response != 0)
return false;
}
// Check available SKUs
boolean found = false;
@ -141,10 +139,8 @@ public class IAB implements ServiceConnection {
Util.logBundle(bundle);
int response = (bundle == null ? -1 : bundle.getInt("RESPONSE_CODE", -1));
Log.i(TAG, "Response=" + getIABResult(response));
if (response != 0) {
Util.sendCrashReport(new IllegalStateException(getIABResult(response)), context);
if (response != 0)
return false;
}
// Check purchases
ArrayList<String> skus = bundle.getStringArrayList("INAPP_PURCHASE_ITEM_LIST");