导航菜单

页面标题

页面副标题

Perplexity v2.48.1 - ProxyBillingActivityV2.java 源代码

正在查看: Perplexity v2.48.1 应用的 ProxyBillingActivityV2.java JAVA 源代码文件

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


package com.android.billingclient.api;

import G3.b;
import G3.d;
import G3.k;
import android.app.PendingIntent;
import android.content.Intent;
import android.content.IntentSender;
import android.os.Bundle;
import android.os.ResultReceiver;
import androidx.activity.ComponentActivity;
import androidx.activity.result.contract.ActivityResultContracts$StartIntentSenderForResult;
import com.android.billingclient.api.ProxyBillingActivityV2;
import com.google.android.apps.common.proguard.UsedByReflection;
import com.google.android.gms.internal.play_billing.o0;
import kotlin.jvm.internal.Intrinsics;

@UsedByReflection("PlatformActivityProxy")
public class ProxyBillingActivityV2 extends ComponentActivity {

    public ResultReceiver f25212X;

    public d f25213x;

    public d f25214y;

    public ResultReceiver f25215z;

    @Override
    public final void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        final int i10 = 0;
        this.f25213x = registerForActivityResult(new ActivityResultContracts$StartIntentSenderForResult(), new b(this) {

            public final ProxyBillingActivityV2 f12354x;

            {
                this.f12354x = this;
            }

            @Override
            public final void a(Object obj) {
                G3.a aVar = (G3.a) obj;
                switch (i10) {
                    case 0:
                        ProxyBillingActivityV2 proxyBillingActivityV2 = this.f12354x;
                        proxyBillingActivityV2.getClass();
                        Intent intent = aVar.f3908x;
                        int i11 = o0.d(intent, "ProxyBillingActivityV2").f12408a;
                        ResultReceiver resultReceiver = proxyBillingActivityV2.f25215z;
                        if (resultReceiver != null) {
                            resultReceiver.send(i11, intent == null ? null : intent.getExtras());
                        }
                        int i12 = aVar.f3907w;
                        if (i12 != -1 || i11 != 0) {
                            o0.g("ProxyBillingActivityV2", "Alternative billing only dialog finished with resultCode " + i12 + " and billing's responseCode: " + i11);
                        }
                        proxyBillingActivityV2.finish();
                        break;
                    default:
                        ProxyBillingActivityV2 proxyBillingActivityV22 = this.f12354x;
                        proxyBillingActivityV22.getClass();
                        Intent intent2 = aVar.f3908x;
                        int i13 = o0.d(intent2, "ProxyBillingActivityV2").f12408a;
                        ResultReceiver resultReceiver2 = proxyBillingActivityV22.f25212X;
                        if (resultReceiver2 != null) {
                            resultReceiver2.send(i13, intent2 == null ? null : intent2.getExtras());
                        }
                        int i14 = aVar.f3907w;
                        if (i14 != -1 || i13 != 0) {
                            o0.g("ProxyBillingActivityV2", "External offer dialog finished with resultCode: " + i14 + " and billing's responseCode: " + i13);
                        }
                        proxyBillingActivityV22.finish();
                        break;
                }
            }
        });
        final int i11 = 1;
        this.f25214y = registerForActivityResult(new ActivityResultContracts$StartIntentSenderForResult(), new b(this) {

            public final ProxyBillingActivityV2 f12354x;

            {
                this.f12354x = this;
            }

            @Override
            public final void a(Object obj) {
                G3.a aVar = (G3.a) obj;
                switch (i11) {
                    case 0:
                        ProxyBillingActivityV2 proxyBillingActivityV2 = this.f12354x;
                        proxyBillingActivityV2.getClass();
                        Intent intent = aVar.f3908x;
                        int i112 = o0.d(intent, "ProxyBillingActivityV2").f12408a;
                        ResultReceiver resultReceiver = proxyBillingActivityV2.f25215z;
                        if (resultReceiver != null) {
                            resultReceiver.send(i112, intent == null ? null : intent.getExtras());
                        }
                        int i12 = aVar.f3907w;
                        if (i12 != -1 || i112 != 0) {
                            o0.g("ProxyBillingActivityV2", "Alternative billing only dialog finished with resultCode " + i12 + " and billing's responseCode: " + i112);
                        }
                        proxyBillingActivityV2.finish();
                        break;
                    default:
                        ProxyBillingActivityV2 proxyBillingActivityV22 = this.f12354x;
                        proxyBillingActivityV22.getClass();
                        Intent intent2 = aVar.f3908x;
                        int i13 = o0.d(intent2, "ProxyBillingActivityV2").f12408a;
                        ResultReceiver resultReceiver2 = proxyBillingActivityV22.f25212X;
                        if (resultReceiver2 != null) {
                            resultReceiver2.send(i13, intent2 == null ? null : intent2.getExtras());
                        }
                        int i14 = aVar.f3907w;
                        if (i14 != -1 || i13 != 0) {
                            o0.g("ProxyBillingActivityV2", "External offer dialog finished with resultCode: " + i14 + " and billing's responseCode: " + i13);
                        }
                        proxyBillingActivityV22.finish();
                        break;
                }
            }
        });
        if (bundle != null) {
            if (bundle.containsKey("alternative_billing_only_dialog_result_receiver")) {
                this.f25215z = (ResultReceiver) bundle.getParcelable("alternative_billing_only_dialog_result_receiver");
                return;
            } else {
                if (bundle.containsKey("external_payment_dialog_result_receiver")) {
                    this.f25212X = (ResultReceiver) bundle.getParcelable("external_payment_dialog_result_receiver");
                    return;
                }
                return;
            }
        }
        o0.f("ProxyBillingActivityV2", "Launching Play Store billing dialog");
        if (getIntent().hasExtra("ALTERNATIVE_BILLING_ONLY_DIALOG_INTENT")) {
            PendingIntent pendingIntent = (PendingIntent) getIntent().getParcelableExtra("ALTERNATIVE_BILLING_ONLY_DIALOG_INTENT");
            this.f25215z = (ResultReceiver) getIntent().getParcelableExtra("alternative_billing_only_dialog_result_receiver");
            d dVar = this.f25213x;
            Intrinsics.h(pendingIntent, "pendingIntent");
            IntentSender intentSender = pendingIntent.getIntentSender();
            Intrinsics.g(intentSender, "pendingIntent.intentSender");
            dVar.a(new k(intentSender, null, 0, 0), null);
            return;
        }
        if (getIntent().hasExtra("external_payment_dialog_pending_intent")) {
            PendingIntent pendingIntent2 = (PendingIntent) getIntent().getParcelableExtra("external_payment_dialog_pending_intent");
            this.f25212X = (ResultReceiver) getIntent().getParcelableExtra("external_payment_dialog_result_receiver");
            d dVar2 = this.f25214y;
            Intrinsics.h(pendingIntent2, "pendingIntent");
            IntentSender intentSender2 = pendingIntent2.getIntentSender();
            Intrinsics.g(intentSender2, "pendingIntent.intentSender");
            dVar2.a(new k(intentSender2, null, 0, 0), null);
        }
    }

    @Override
    public final void onSaveInstanceState(Bundle bundle) {
        super.onSaveInstanceState(bundle);
        ResultReceiver resultReceiver = this.f25215z;
        if (resultReceiver != null) {
            bundle.putParcelable("alternative_billing_only_dialog_result_receiver", resultReceiver);
        }
        ResultReceiver resultReceiver2 = this.f25212X;
        if (resultReceiver2 != null) {
            bundle.putParcelable("external_payment_dialog_result_receiver", resultReceiver2);
        }
    }
}