Removed try catch from one tap fragment
@@ -50,7 +50,6 @@ import com.mercadopago.android.px.internal.features.express.slider.SummaryViewAd
import com.mercadopago.android.px.internal.features.express.slider.TitlePagerAdapter;
import com.mercadopago.android.px.internal.features.plugins.PaymentProcessorActivity;
import com.mercadopago.android.px.internal.util.ApiUtil;
-import com.mercadopago.android.px.internal.util.ErrorUtil;
import com.mercadopago.android.px.internal.util.FragmentUtil;
import com.mercadopago.android.px.internal.util.VibrationUtils;
import com.mercadopago.android.px.internal.util.ViewUtils;
@@ -152,8 +151,6 @@ public class ExpressPaymentFragment extends Fragment implements ExpressPayment.V
configureViews(view);
- //TODO remove try catch after session is persisted
- try {
presenter = createPresenter();
presenter.attachView(this);
if (savedInstanceState == null) {
@@ -163,13 +160,6 @@ public class ExpressPaymentFragment extends Fragment implements ExpressPayment.V
presenter.recoverFromBundle(savedInstanceState);
}
presenter.loadViewModel();
- } catch (final Exception e) {
- if (savedInstanceState == null) {
- ErrorUtil.startErrorActivity(getActivity());
- } else {
- cancel();
- }
- }
// Order is important - On click and events should be wired AFTER view is attached.
summaryView.setOnFitListener(this);
