正在查看: Aisle v12.32 应用的 ProxyBillingActivityV2.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Aisle v12.32 应用的 ProxyBillingActivityV2.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.android.billingclient.api;
import android.app.PendingIntent;
import android.content.Intent;
import android.os.Bundle;
import android.os.ResultReceiver;
import androidx.activity.ComponentActivity;
import androidx.activity.result.e;
import com.google.android.apps.common.proguard.UsedByReflection;
import com.google.android.gms.internal.play_billing.zzc;
import com.google.android.gms.internal.play_billing.zzie;
import i.C1770e;
@UsedByReflection("PlatformActivityProxy")
public class ProxyBillingActivityV2 extends ComponentActivity {
private androidx.activity.result.c f22381a;
private androidx.activity.result.c f22382b;
private androidx.activity.result.c f22383c;
private ResultReceiver f22384d;
private ResultReceiver f22385e;
private ResultReceiver f22386f;
final void I(androidx.activity.result.a aVar) {
Intent a5 = aVar.a();
int c5 = zzc.zzh(a5, "ProxyBillingActivityV2").c();
ResultReceiver resultReceiver = this.f22384d;
if (resultReceiver != null) {
resultReceiver.send(c5, a5 == null ? null : a5.getExtras());
}
if (aVar.b() != -1 || c5 != 0) {
zzc.zzn("ProxyBillingActivityV2", "Alternative billing only dialog finished with resultCode " + aVar.b() + " and billing's responseCode: " + c5);
}
finish();
}
final void J(androidx.activity.result.a aVar) {
Intent a5 = aVar.a();
int c5 = zzc.zzh(a5, "ProxyBillingActivityV2").c();
ResultReceiver resultReceiver = this.f22385e;
if (resultReceiver != null) {
resultReceiver.send(c5, a5 == null ? null : a5.getExtras());
}
if (aVar.b() != -1 || c5 != 0) {
zzc.zzn("ProxyBillingActivityV2", String.format("External offer dialog finished with resultCode: %s and billing's responseCode: %s", Integer.valueOf(aVar.b()), Integer.valueOf(c5)));
}
finish();
}
final void K(androidx.activity.result.a aVar) {
Intent a5 = aVar.a();
Bundle extras = a5 == null ? null : a5.getExtras();
if (aVar.b() != -1) {
if (extras == null) {
extras = new Bundle();
}
zzc.zzn("ProxyBillingActivityV2", String.format("External offer flow finished with resultCode: %s", Integer.valueOf(aVar.b())));
extras.putInt("INTERNAL_LOG_ERROR_REASON", zzie.zzbv.zza());
extras.putString("INTERNAL_LOG_ERROR_ADDITIONAL_DETAILS", String.format("External offer flow finished with error resultCode: %s", Integer.valueOf(aVar.b())));
}
int c5 = zzc.zzh(a5, "ProxyBillingActivityV2").c();
ResultReceiver resultReceiver = this.f22386f;
if (resultReceiver != null) {
resultReceiver.send(c5, extras);
} else {
zzc.zzn("ProxyBillingActivityV2", "External offer flow result receiver is null");
}
if (c5 != 0) {
zzc.zzn("ProxyBillingActivityV2", String.format("External offer flow finished with billing responseCode: %s", Integer.valueOf(c5)));
}
finish();
}
@Override
protected final void onCreate(Bundle bundle) {
super.onCreate(bundle);
this.f22381a = registerForActivityResult(new C1770e(), new androidx.activity.result.b() {
@Override
public final void a(Object obj) {
ProxyBillingActivityV2.this.I((androidx.activity.result.a) obj);
}
});
this.f22382b = registerForActivityResult(new C1770e(), new androidx.activity.result.b() {
@Override
public final void a(Object obj) {
ProxyBillingActivityV2.this.J((androidx.activity.result.a) obj);
}
});
this.f22383c = registerForActivityResult(new C1770e(), new androidx.activity.result.b() {
@Override
public final void a(Object obj) {
ProxyBillingActivityV2.this.K((androidx.activity.result.a) obj);
}
});
if (bundle != null) {
if (bundle.containsKey("alternative_billing_only_dialog_result_receiver")) {
this.f22384d = (ResultReceiver) bundle.getParcelable("alternative_billing_only_dialog_result_receiver");
}
if (bundle.containsKey("external_payment_dialog_result_receiver")) {
this.f22385e = (ResultReceiver) bundle.getParcelable("external_payment_dialog_result_receiver");
}
if (bundle.containsKey("external_offer_flow_result_receiver")) {
this.f22386f = (ResultReceiver) bundle.getParcelable("external_offer_flow_result_receiver");
return;
}
return;
}
zzc.zzm("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.f22384d = (ResultReceiver) getIntent().getParcelableExtra("alternative_billing_only_dialog_result_receiver");
this.f22381a.a(new e.a(pendingIntent).a());
} else if (getIntent().hasExtra("external_payment_dialog_pending_intent")) {
PendingIntent pendingIntent2 = (PendingIntent) getIntent().getParcelableExtra("external_payment_dialog_pending_intent");
this.f22385e = (ResultReceiver) getIntent().getParcelableExtra("external_payment_dialog_result_receiver");
this.f22382b.a(new e.a(pendingIntent2).a());
} else if (getIntent().hasExtra("external_offer_flow_pending_intent")) {
PendingIntent pendingIntent3 = (PendingIntent) getIntent().getParcelableExtra("external_offer_flow_pending_intent");
this.f22386f = (ResultReceiver) getIntent().getParcelableExtra("external_offer_flow_result_receiver");
this.f22383c.a(new e.a(pendingIntent3).a());
}
}
@Override
protected final void onSaveInstanceState(Bundle bundle) {
super.onSaveInstanceState(bundle);
ResultReceiver resultReceiver = this.f22384d;
if (resultReceiver != null) {
bundle.putParcelable("alternative_billing_only_dialog_result_receiver", resultReceiver);
}
ResultReceiver resultReceiver2 = this.f22385e;
if (resultReceiver2 != null) {
bundle.putParcelable("external_payment_dialog_result_receiver", resultReceiver2);
}
ResultReceiver resultReceiver3 = this.f22386f;
if (resultReceiver3 != null) {
bundle.putParcelable("external_offer_flow_result_receiver", resultReceiver3);
}
}
}