导航菜单

页面标题

页面副标题

Clash Legends v0.0.1 - PayPalProfileSharingActivity.java 源代码

正在查看: Clash Legends v0.0.1 应用的 PayPalProfileSharingActivity.java JAVA 源代码文件

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


package com.paypal.android.sdk.payments;

import android.R;
import android.app.Activity;
import android.app.Dialog;
import android.content.Intent;
import android.content.ServiceConnection;
import android.os.Bundle;
import android.util.Log;
import android.widget.TextView;
import com.paypal.android.sdk.fu;
import com.paypal.android.sdk.fw;
import com.paypal.android.sdk.gn;
import com.paypal.android.sdk.gq;
import com.paypal.android.sdk.gr;
import com.paypal.android.sdk.gs;
import java.util.Arrays;
import java.util.Date;
import java.util.Timer;

public final class PayPalProfileSharingActivity extends Activity {
    public static final String EXTRA_REQUESTED_SCOPES = "com.paypal.android.sdk.requested_scopes";
    public static final String EXTRA_RESULT_AUTHORIZATION = "com.paypal.android.sdk.authorization";
    public static final int RESULT_EXTRAS_INVALID = 2;
    private static final String a = PayPalProfileSharingActivity.class.getSimpleName();
    private Date b;
    private Timer c;
    private PayPalService d;
    private final ServiceConnection e = new bu(this);
    private boolean f;

    static ce a(PayPalProfileSharingActivity payPalProfileSharingActivity) {
        return new bv(payPalProfileSharingActivity);
    }

    @Override
    public final void finish() {
        super.finish();
        new StringBuilder().append(getClass().getSimpleName()).append(".finish");
    }

    @Override
    protected final void onActivityResult(int i, int i2, Intent intent) {
        String str;
        String str2;
        super.onActivityResult(i, i2, intent);
        new StringBuilder().append(getClass().getSimpleName()).append(".onActivityResult");
        if (i == 1) {
            switch (i2) {
                case -1:
                    if (intent != null) {
                        PayPalAuthorization payPalAuthorization = (PayPalAuthorization) intent.getParcelableExtra("com.paypal.android.sdk.authorization");
                        if (payPalAuthorization != null) {
                            Intent intent2 = new Intent();
                            intent2.putExtra("com.paypal.android.sdk.authorization", payPalAuthorization);
                            setResult(-1, intent2);
                            break;
                        } else {
                            str = a;
                            str2 = "result was OK, have data, but no authorization state in bundle, oops";
                        }
                    } else {
                        str = a;
                        str2 = "result was OK, no intent data, oops";
                    }
                    Log.e(str, str2);
                    break;
                case 0:
                    break;
                default:
                    Log.wtf(a, "unexpected request code " + i + " call it a cancel");
                    break;
            }
        }
        finish();
    }

    @Override
    protected final void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        new StringBuilder().append(getClass().getSimpleName()).append(".onCreate");
        new gs(this).a();
        new gr(this).a();
        new gq(this).a(Arrays.asList(PayPalProfileSharingActivity.class.getName(), LoginActivity.class.getName(), FuturePaymentInfoActivity.class.getName(), ProfileSharingConsentActivity.class.getName()));
        this.f = bindService(d.b(this), this.e, 1);
        setTheme(R.style.Theme.Holo.Light);
        requestWindowFeature(8);
        gn gnVar = new gn(this);
        setContentView(gnVar.a);
        gnVar.b.setText(fu.a(fw.CHECKING_DEVICE));
        d.a(this, (TextView) null, fw.CHECKING_DEVICE);
    }

    @Override
    protected final Dialog onCreateDialog(int i, Bundle bundle) {
        switch (i) {
            case 2:
                return d.a(this, new bt(this));
            case 3:
                return d.a(this, fw.UNAUTHORIZED_MERCHANT_TITLE, bundle, i);
            default:
                return d.a(this, fw.UNAUTHORIZED_DEVICE_TITLE, bundle, i);
        }
    }

    @Override
    protected final void onDestroy() {
        new StringBuilder().append(getClass().getSimpleName()).append(".onDestroy");
        PayPalService payPalService = this.d;
        if (payPalService != null) {
            payPalService.o();
            this.d.u();
        }
        if (this.f) {
            unbindService(this.e);
            this.f = false;
        }
        super.onDestroy();
    }
}