Fix inapp purchase methods in InAppActivity
This commit is contained in:
parent
ff64caaa8f
commit
51eb29d931
1 changed files with 8 additions and 1 deletions
|
@ -118,7 +118,7 @@ public class InAppPurchaseActivity extends Activity implements InAppPurchaseList
|
|||
public void onClick(View v) {
|
||||
Purchasable item = (Purchasable) v.getTag();
|
||||
if (v.equals(recoverAccountButton)) {
|
||||
inAppPurchaseHelper.recoverAccount(item.getId(), getUsername());
|
||||
inAppPurchaseHelper.recoverAccount(getUsername());
|
||||
} else {
|
||||
inAppPurchaseHelper.purchaseItemAsync(item.getId(), getUsername());
|
||||
}
|
||||
|
@ -149,6 +149,13 @@ public class InAppPurchaseActivity extends Activity implements InAppPurchaseList
|
|||
}
|
||||
});
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onActivateAccountSuccessful(boolean success) {
|
||||
if (success) {
|
||||
Log.d("[In-app purchase] Account activated");
|
||||
}
|
||||
}
|
||||
|
||||
private void displayBuySubscriptionButton(Purchasable item) {
|
||||
View layout = LayoutInflater.from(this).inflate(R.layout.in_app_purchasable, purchasableItemsLayout);
|
||||
|
|
Loading…
Reference in a new issue