导航菜单

页面标题

页面副标题

Hopscotch v9.7.2 - PayPalProcessCompleteActivity.java 源代码

正在查看: Hopscotch v9.7.2 应用的 PayPalProcessCompleteActivity.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package in.hopscotch.android.activity;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import in.hopscotch.android.activity.OrderConfirmationActivityNew;
import in.hopscotch.android.api.RetrofitApiBuilder;
import in.hopscotch.android.api.factory.OrderReturnApiFactory;
import in.hopscotch.android.api.response.ActionResponse;
import java.util.List;
import kotlin.jvm.internal.Intrinsics;

public class PayPalProcessCompleteActivity extends androidx.appcompat.app.i {
    private List<String> urlParams;

    public final void R0() {
        String string;
        in.hopscotch.android.application.a.e(0, this);
        Long valueOf = Long.valueOf(in.hopscotch.android.db.a.r());
        String q = in.hopscotch.android.db.a.q();
        synchronized (in.hopscotch.android.db.a.class) {
            string = in.hopscotch.android.db.a.x().getString("addressTypeForPaypal", null);
        }
        OrderConfirmationActivityNew.a aVar = OrderConfirmationActivityNew.i;
        aVar.getClass();
        Intrinsics.checkNotNullParameter(this, "context");
        Intrinsics.checkNotNullParameter(this, "context");
        OrderConfirmationActivityNew.a.b(aVar, this, valueOf, q, string, null, null, false, 1920);
        finish();
    }

    public final void onCreate(Bundle bundle) {
        super/*androidx.fragment.app.n*/.onCreate(bundle);
        try {
            if (getIntent() != null && getIntent().getData() != null) {
                this.urlParams = getIntent().getData().getPathSegments();
            }
            List<String> list = this.urlParams;
            if (list == null || list.isEmpty()) {
                return;
            }
            if (this.urlParams.get(0).equals("success")) {
                R0();
            }
            if (this.urlParams.get(0).equals(OrderReturnApiFactory.REFUND_TYPE_CANCEL)) {
                RetrofitApiBuilder.getInstance().cancelAllRequests();
                Intent intent = new Intent((Context) this, (Class<?>) HomePageActivity.class);
                intent.putExtra("HOME_TAB", 4);
                intent.putExtra("FROM_SCREEN", "Process Complete");
                intent.setFlags(268468224);
                in.hopscotch.android.db.a.K(true);
                startActivity(intent);
                finish();
            }
            if (this.urlParams.get(0).equals(ActionResponse.FAILURE)) {
                finish();
            }
        } catch (Exception e) {
            in.hopscotch.android.util.g.b(e);
        }
    }
}