checking if activity is not finishing before opening next
@@ -351,6 +351,7 @@ public class CheckoutActivity extends MercadoPagoBaseActivity implements Checkou
@Override
public void showPaymentMethodSelection() {
+ if (this.isActive()) {
new MercadoPagoComponents.Activities.PaymentVaultActivityBuilder()
.setActivity(this)
.setMerchantPublicKey(mMerchantPublicKey)
@@ -372,6 +373,7 @@ public class CheckoutActivity extends MercadoPagoBaseActivity implements Checkou
.setCheckoutPreference(mCheckoutPresenter.getCheckoutPreference())
.startActivity();
}
+ }
@Override
public void showPaymentResult(PaymentResult paymentResult) {
