Proxy Master v3.4.9版本的 MD5 值为:14d0aa2468d13530c8f6e96bcc114bf5
以下内容为反编译后的 BillingClientActivity.java 源代码,内容仅作参考
package com.free.vpn.proxy.master.app.activity;
import android.animation.AnimatorSet;
import android.animation.ObjectAnimator;
import android.annotation.SuppressLint;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.os.Handler;
import android.os.Looper;
import android.os.Message;
import android.text.TextUtils;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.animation.LinearInterpolator;
import android.widget.FrameLayout;
import android.widget.LinearLayout;
import android.widget.ProgressBar;
import android.widget.TextView;
import androidx.activity.o;
import androidx.activity.z;
import androidx.appcompat.widget.AppCompatButton;
import androidx.appcompat.widget.AppCompatImageView;
import androidx.appcompat.widget.AppCompatTextView;
import androidx.core.widget.NestedScrollView;
import androidx.viewpager.widget.ViewPager;
import com.android.billingclient.api.ProductDetails;
import com.android.billingclient.api.Purchase;
import com.free.vpn.proxy.master.app.R;
import com.free.vpn.proxy.master.app.activity.BillingClientActivity;
import com.free.vpn.proxy.master.app.main.MainActivity;
import com.free.vpn.proxy.master.app.view.IapSkuItemMonth;
import com.free.vpn.proxy.master.app.view.IapSkuItemWeek;
import com.free.vpn.proxy.master.app.view.IapSkuItemYear;
import com.hotspot.vpn.base.view.circleindicator.CircleIndicator;
import java.text.SimpleDateFormat;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import n7.e;
import r7.k;
import t3.h;
import v.b;
import ye.g0;
import z3.f;
import z3.g;
public class BillingClientActivity extends t3.d implements Handler.Callback, x3.a {
public static final int D = 0;
public String A;
public g B;
public y3.b C;
public f f6595q;
public ProductDetails f6596r;
public ProductDetails f6597s;
public ProductDetails f6598t;
public ProductDetails f6599u;
public ProductDetails f6600v;
public ProductDetails f6601w;
public final Handler f6602x = new Handler(Looper.getMainLooper(), this);
public String f6603y;
public String f6604z;
public class a implements ViewPager.j {
public a() {
}
@Override
public final void onPageScrollStateChanged(int i10) {
}
@Override
public final void onPageScrolled(int i10, float f10, int i11) {
}
@Override
public final void onPageSelected(int i10) {
BillingClientActivity billingClientActivity = BillingClientActivity.this;
switch (i10) {
case 0:
BillingClientActivity.y(billingClientActivity, R.color.iap_green_color);
BillingClientActivity.z(billingClientActivity, R.drawable.bg_iap_feature_green);
return;
case 1:
BillingClientActivity.y(billingClientActivity, R.color.iap_pink_color);
BillingClientActivity.z(billingClientActivity, R.drawable.bg_iap_feature_pink);
return;
case 2:
BillingClientActivity.y(billingClientActivity, R.color.iap_blue_color);
BillingClientActivity.z(billingClientActivity, R.drawable.bg_iap_feature_blue);
return;
case 3:
BillingClientActivity.y(billingClientActivity, R.color.iap_gray_color);
BillingClientActivity.z(billingClientActivity, R.drawable.bg_iap_feature_gray);
return;
case 4:
BillingClientActivity.y(billingClientActivity, R.color.iap_blue_dark_color);
BillingClientActivity.z(billingClientActivity, R.drawable.bg_iap_feature_blue_dark);
return;
case 5:
BillingClientActivity.y(billingClientActivity, R.color.iap_purple_color);
BillingClientActivity.z(billingClientActivity, R.drawable.bg_iap_feature_purple);
return;
case 6:
BillingClientActivity.y(billingClientActivity, R.color.iap_orange_light_color);
BillingClientActivity.z(billingClientActivity, R.drawable.bg_iap_feature_orange_light);
return;
default:
return;
}
}
}
public class b extends o {
public b() {
super(true);
}
@Override
public final void a() {
boolean a8 = s3.b.c().a();
BillingClientActivity billingClientActivity = BillingClientActivity.this;
if (a8) {
int i10 = BillingClientActivity.D;
billingClientActivity.B();
return;
}
int i11 = BillingClientActivity.D;
if (billingClientActivity.A()) {
billingClientActivity.B();
} else {
billingClientActivity.C();
}
}
}
public class c implements f.b {
public c() {
}
}
public class d extends r1.a {
public d() {
}
@Override
public final void destroyItem(ViewGroup viewGroup, int i10, Object obj) {
viewGroup.removeView((View) obj);
}
@Override
public final int getCount() {
return 7;
}
@Override
public final Object instantiateItem(ViewGroup viewGroup, int i10) {
View inflate = i10 != 0 ? i10 != 1 ? i10 != 2 ? i10 != 4 ? i10 != 5 ? i10 != 6 ? LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.view_feature_no_ads, viewGroup, false) : LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.view_feature_no_logs, viewGroup, false) : LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.view_feature_secure, viewGroup, false) : LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.view_feature_fast, viewGroup, false) : LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.view_feature_anonymous, viewGroup, false) : LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.view_feature_worldwide, viewGroup, false) : LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.view_feature_unlimited, viewGroup, false);
Object[] objArr = {r7.a.c()};
BillingClientActivity billingClientActivity = BillingClientActivity.this;
((TextView) inflate.findViewById(R.id.tvFeatureTitle)).setText(billingClientActivity.getString(R.string.iap_premium_title, objArr));
if (billingClientActivity.f28641n) {
inflate.setPadding(0, r7.b.a(), 0, 0);
}
viewGroup.addView(inflate);
return inflate;
}
@Override
public final boolean isViewFromObject(View view, Object obj) {
return view == obj;
}
}
public static void D(Context context, String str) {
Intent intent = new Intent(context, BillingClientActivity.class);
intent.putExtra("key_from", str);
context.startActivity(intent);
}
public static void y(BillingClientActivity billingClientActivity, int i10) {
CircleIndicator circleIndicator = billingClientActivity.C.f36778l;
Object obj = v.b.f35534a;
circleIndicator.setIndicatorSelectedBackground(b.d.a(billingClientActivity, i10));
}
public static void z(BillingClientActivity billingClientActivity, int i10) {
billingClientActivity.C.f36780n.setBackgroundResource(i10);
}
public final boolean A() {
return TextUtils.equals(this.f6604z, "splash_activity") || TextUtils.equals(this.f6604z, "privacy_policy") || TextUtils.equals(this.f6604z, "first_launch");
}
public final void B() {
e8.a.c("subs_close");
if (TextUtils.equals(this.f6603y, r7.a.d() + ".IabAction") || TextUtils.equals(this.f6604z, "privacy_policy") || TextUtils.equals(this.f6604z, "first_launch")) {
MainActivity.A(this);
}
finish();
}
public final void C() {
f fVar = this.f6595q;
if (fVar != null && fVar.isShowing()) {
this.f6595q.dismiss();
}
ProductDetails productDetails = this.f6600v;
if (productDetails == null) {
B();
return;
}
f fVar2 = new f(this, k4.a.c(productDetails));
fVar2.show();
this.f6595q = fVar2;
e8.a.c("subs_discount_dialog_show");
this.f6595q.f37400e = new c();
}
public final void E() {
y3.b bVar = this.C;
if (bVar.f36777k.f6789b) {
Purchase d10 = s3.b.c().d();
String a8 = k4.a.a(this.f6600v);
if (d10 == null) {
s3.b.c().e(this, this.f6600v, a8);
} else if ("subs.year".equals(d10.getProducts().get(0)) || "subs.year.premium".equals(d10.getProducts().get(0))) {
z.t0(R.string.iap_sub_owned_tips, this);
} else {
s3.b.c().j(this, d10, this.f6600v, a8);
}
} else if (!bVar.f36775i.f6783b) {
Purchase d11 = s3.b.c().d();
String a10 = k4.a.a(this.f6596r);
if (d11 == null) {
s3.b.c().e(this, this.f6596r, a10);
} else if ("subs.week".equals(d11.getProducts().get(0)) || "subs.week.premium".equals(d11.getProducts().get(0))) {
z.t0(R.string.iap_sub_owned_tips, this);
} else {
s3.b.c().j(this, d11, this.f6596r, a10);
}
} else {
Purchase d12 = s3.b.c().d();
String a11 = k4.a.a(this.f6598t);
if (d12 == null) {
s3.b.c().e(this, this.f6598t, a11);
return;
}
String str = d12.getProducts().get(0);
if ("subs.month".equals(str) || "subs.month.premium".equals(str)) {
z.t0(R.string.iap_sub_owned_tips, this);
} else {
s3.b.c().j(this, d12, this.f6598t, a11);
}
}
}
public final void F() {
Purchase d10 = s3.b.c().d();
String a8 = k4.a.a(this.f6599u);
if (d10 == null) {
s3.b.c().e(this, this.f6599u, a8);
} else if ("subs.month".equals(d10.getProducts().get(0)) || "subs.month.premium".equals(d10.getProducts().get(0))) {
z.t0(R.string.iap_sub_owned_tips, this);
} else {
s3.b.c().j(this, d10, this.f6599u, a8);
}
}
public final void G() {
Purchase d10 = s3.b.c().d();
String a8 = k4.a.a(this.f6597s);
if (d10 == null) {
s3.b.c().e(this, this.f6597s, a8);
} else if ("subs.week".equals(d10.getProducts().get(0)) || "subs.week.premium".equals(d10.getProducts().get(0))) {
z.t0(R.string.iap_sub_owned_tips, this);
} else {
s3.b.c().j(this, d10, this.f6597s, a8);
}
}
public final void H() {
Purchase d10 = s3.b.c().d();
String a8 = k4.a.a(this.f6601w);
if (d10 == null) {
s3.b.c().e(this, this.f6601w, a8);
} else if ("subs.year".equals(d10.getProducts().get(0)) || "subs.year.premium".equals(d10.getProducts().get(0))) {
z.t0(R.string.iap_sub_owned_tips, this);
} else {
s3.b.c().j(this, d10, this.f6601w, a8);
}
}
@SuppressLint({"StringFormatInvalid"})
public final void I() {
try {
y3.b bVar = this.C;
if (bVar.f36777k.f6789b) {
ProductDetails productDetails = this.f6600v;
if (productDetails != null) {
String b6 = k4.a.b(productDetails);
int c10 = k4.a.c(this.f6600v);
if (c10 > 0) {
this.C.f36773g.setVisibility(0);
this.C.f36783q.setVisibility(0);
this.C.f36783q.setText(getString(R.string.iap_start_free_trial_yearly_tips, b6));
this.C.f36782p.setText(getString(R.string.iap_start_free_trial, Integer.valueOf(c10)));
} else {
this.C.f36773g.setVisibility(8);
}
} else {
bVar.f36783q.setVisibility(0);
this.C.f36783q.setText(getString(R.string.iap_start_free_trial_yearly_tips, getString(R.string.iap_year_total_price_default)));
this.C.f36782p.setText(getString(R.string.iap_start_free_trial, 7));
}
} else if (bVar.f36776j.f6786b) {
ProductDetails productDetails2 = this.f6596r;
if (productDetails2 != null) {
String b10 = k4.a.b(productDetails2);
int c11 = k4.a.c(this.f6596r);
if (c11 > 0) {
this.C.f36773g.setVisibility(0);
this.C.f36783q.setVisibility(0);
this.C.f36783q.setText(getString(R.string.iap_start_free_trial_weekly_tips, b10));
this.C.f36782p.setText(getString(R.string.iap_start_free_trial, Integer.valueOf(c11)));
} else {
this.C.f36773g.setVisibility(8);
}
} else {
bVar.f36783q.setVisibility(0);
this.C.f36783q.setText(getString(R.string.iap_start_free_trial_weekly_tips, getString(R.string.iap_week_total_price_default)));
this.C.f36782p.setText(getString(R.string.iap_start_free_trial, 3));
}
} else {
ProductDetails productDetails3 = this.f6598t;
if (productDetails3 != null) {
String b11 = k4.a.b(productDetails3);
int c12 = k4.a.c(this.f6598t);
if (c12 > 0) {
this.C.f36773g.setVisibility(0);
this.C.f36783q.setVisibility(0);
this.C.f36783q.setText(getString(R.string.iap_start_free_trial_monthly_tips, b11));
this.C.f36782p.setText(getString(R.string.iap_start_free_trial, Integer.valueOf(c12)));
} else {
this.C.f36773g.setVisibility(8);
}
} else {
bVar.f36783q.setVisibility(0);
this.C.f36783q.setText(getString(R.string.iap_start_free_trial_monthly_tips, getString(R.string.iap_month_total_price_default)));
this.C.f36782p.setText(getString(R.string.iap_start_free_trial, 3));
}
}
} catch (Exception e10) {
e10.printStackTrace();
}
}
@Override
public final void b(Map<String, Purchase> map) {
map.entrySet().size();
SimpleDateFormat simpleDateFormat = e.f28649f;
if (map.entrySet().isEmpty()) {
return;
}
g gVar = this.B;
if (gVar != null && gVar.isShowing()) {
this.B.dismiss();
}
g gVar2 = new g(this);
gVar2.show();
this.B = gVar2;
gVar2.f29428d = new h(this);
s3.b.c().f30948g.clear();
}
@Override
public final void c(List<Purchase> list) {
if (list != null) {
for (Purchase purchase : list) {
this.A = purchase.getProducts().get(0);
}
}
}
@Override
public final void f(List<ProductDetails> list) {
Objects.toString(list);
SimpleDateFormat simpleDateFormat = e.f28649f;
Iterator<ProductDetails> it = list.iterator();
while (true) {
char c10 = 0;
if (!it.hasNext()) {
I();
this.C.f36774h.setVisibility(8);
this.C.f36779m.setVisibility(0);
return;
}
ProductDetails next = it.next();
String productId = next.getProductId();
productId.getClass();
switch (productId.hashCode()) {
case -1692506751:
break;
case -619614098:
if (productId.equals("subs.month.premium")) {
c10 = 1;
break;
}
c10 = 65535;
break;
case 466040527:
if (productId.equals("subs.week")) {
c10 = 2;
break;
}
c10 = 65535;
break;
case 466099992:
if (productId.equals("subs.year")) {
c10 = 3;
break;
}
c10 = 65535;
break;
case 1325520440:
if (productId.equals("subs.week.premium")) {
c10 = 4;
break;
}
c10 = 65535;
break;
case 1553426181:
if (productId.equals("subs.month")) {
c10 = 5;
break;
}
c10 = 65535;
break;
default:
c10 = 65535;
break;
}
switch (c10) {
case 0:
this.f6601w = next;
break;
case 1:
this.f6599u = next;
break;
case 2:
this.f6596r = next;
this.C.f36776j.setSkuDetail(next);
break;
case 3:
this.f6600v = next;
this.C.f36777k.setSkuDetail(next);
break;
case 4:
this.f6597s = next;
break;
case 5:
this.f6598t = next;
this.C.f36775i.setSkuDetail(next);
break;
}
}
}
@Override
public final boolean handleMessage(Message message) {
return false;
}
@Override
public final void onCreate(Bundle bundle) {
super.onCreate(bundle);
s3.b c10 = s3.b.c();
c10.i();
c10.f30949h.add(this);
f(c10.f30946e);
c(c10.f30947f);
b(c10.f30948g);
}
@Override
public final void onDestroy() {
super.onDestroy();
f fVar = this.f6595q;
if (fVar != null && fVar.isShowing()) {
this.f6595q.dismiss();
}
g gVar = this.B;
if (gVar != null && gVar.isShowing()) {
this.B.dismiss();
}
s3.b.c().f30949h.remove(this);
}
@Override
public final void onResume() {
super.onResume();
}
@Override
public final void w() {
View inflate = getLayoutInflater().inflate(R.layout.activity_billing_client, (ViewGroup) null, false);
int i10 = R.id.btnArrowForward;
AppCompatImageView appCompatImageView = (AppCompatImageView) g0.K(R.id.btnArrowForward, inflate);
if (appCompatImageView != null) {
i10 = R.id.btnGetPremium;
AppCompatButton appCompatButton = (AppCompatButton) g0.K(R.id.btnGetPremium, inflate);
if (appCompatButton != null) {
i10 = R.id.btnGetPremiumLayout;
FrameLayout frameLayout = (FrameLayout) g0.K(R.id.btnGetPremiumLayout, inflate);
if (frameLayout != null) {
i10 = R.id.btn_manage_subs;
AppCompatTextView appCompatTextView = (AppCompatTextView) g0.K(R.id.btn_manage_subs, inflate);
if (appCompatTextView != null) {
i10 = R.id.btnNoThanks;
AppCompatImageView appCompatImageView2 = (AppCompatImageView) g0.K(R.id.btnNoThanks, inflate);
if (appCompatImageView2 != null) {
i10 = R.id.btnRestorePurchase;
AppCompatButton appCompatButton2 = (AppCompatButton) g0.K(R.id.btnRestorePurchase, inflate);
if (appCompatButton2 != null) {
i10 = R.id.btnStartFreeTrial;
LinearLayout linearLayout = (LinearLayout) g0.K(R.id.btnStartFreeTrial, inflate);
if (linearLayout != null) {
i10 = R.id.contentLoadingProgressBar;
ProgressBar progressBar = (ProgressBar) g0.K(R.id.contentLoadingProgressBar, inflate);
if (progressBar != null) {
i10 = R.id.iapSkuItemMonth;
IapSkuItemMonth iapSkuItemMonth = (IapSkuItemMonth) g0.K(R.id.iapSkuItemMonth, inflate);
if (iapSkuItemMonth != null) {
i10 = R.id.iapSkuItemWeek;
IapSkuItemWeek iapSkuItemWeek = (IapSkuItemWeek) g0.K(R.id.iapSkuItemWeek, inflate);
if (iapSkuItemWeek != null) {
i10 = R.id.iapSkuItemYear;
IapSkuItemYear iapSkuItemYear = (IapSkuItemYear) g0.K(R.id.iapSkuItemYear, inflate);
if (iapSkuItemYear != null) {
i10 = R.id.indicator;
CircleIndicator circleIndicator = (CircleIndicator) g0.K(R.id.indicator, inflate);
if (circleIndicator != null) {
i10 = R.id.premiumContent;
NestedScrollView nestedScrollView = (NestedScrollView) g0.K(R.id.premiumContent, inflate);
if (nestedScrollView != null) {
i10 = R.id.progressBar;
if (((ProgressBar) g0.K(R.id.progressBar, inflate)) != null) {
LinearLayout linearLayout2 = (LinearLayout) inflate;
int i11 = R.id.tv_manage_subs;
if (((AppCompatTextView) g0.K(R.id.tv_manage_subs, inflate)) != null) {
i11 = R.id.tvPrivacyLink;
AppCompatTextView appCompatTextView2 = (AppCompatTextView) g0.K(R.id.tvPrivacyLink, inflate);
if (appCompatTextView2 != null) {
i11 = R.id.tvStartFreeTrialDays;
AppCompatTextView appCompatTextView3 = (AppCompatTextView) g0.K(R.id.tvStartFreeTrialDays, inflate);
if (appCompatTextView3 != null) {
i11 = R.id.tvStartFreeTrialTips;
AppCompatTextView appCompatTextView4 = (AppCompatTextView) g0.K(R.id.tvStartFreeTrialTips, inflate);
if (appCompatTextView4 != null) {
i11 = R.id.viewPager;
ViewPager viewPager = (ViewPager) g0.K(R.id.viewPager, inflate);
if (viewPager != null) {
this.C = new y3.b(linearLayout2, appCompatImageView, appCompatButton, frameLayout, appCompatTextView, appCompatImageView2, appCompatButton2, linearLayout, progressBar, iapSkuItemMonth, iapSkuItemWeek, iapSkuItemYear, circleIndicator, nestedScrollView, linearLayout2, appCompatTextView2, appCompatTextView3, appCompatTextView4, viewPager);
setContentView(linearLayout2);
this.f6603y = getIntent().getAction();
this.C.f36784r.setAdapter(new d());
y3.b bVar = this.C;
bVar.f36778l.setViewPager(bVar.f36784r);
this.C.f36784r.addOnPageChangeListener(new a());
this.C.f36771e.setOnClickListener(new View.OnClickListener(this) {
public final BillingClientActivity f34800c;
{
this.f34800c = this;
}
@Override
public final void onClick(View view) {
int i12 = r2;
BillingClientActivity billingClientActivity = this.f34800c;
switch (i12) {
case 0:
int i13 = BillingClientActivity.D;
billingClientActivity.getClass();
if (s3.b.c().a()) {
billingClientActivity.B();
return;
} else if (billingClientActivity.A()) {
billingClientActivity.B();
return;
} else {
billingClientActivity.C();
return;
}
case 1:
int i14 = BillingClientActivity.D;
billingClientActivity.getClass();
s3.b.c().g(true);
return;
default:
y3.b bVar2 = billingClientActivity.C;
if (bVar2.f36777k.f6789b) {
billingClientActivity.H();
return;
}
bVar2.f36776j.setItemActive(false);
billingClientActivity.C.f36777k.setItemActive(true);
billingClientActivity.C.f36775i.setItemActive(false);
billingClientActivity.I();
return;
}
}
});
this.C.f36768b.setOnClickListener(new View.OnClickListener(this) {
public final BillingClientActivity f34802c;
{
this.f34802c = this;
}
@Override
public final void onClick(View view) {
int i12 = r2;
BillingClientActivity billingClientActivity = this.f34802c;
switch (i12) {
case 0:
int i13 = BillingClientActivity.D;
billingClientActivity.getClass();
e8.a.c("subs_click_get_premium");
y3.b bVar2 = billingClientActivity.C;
if (bVar2.f36777k.f6789b) {
billingClientActivity.H();
return;
} else if (bVar2.f36775i.f6783b) {
billingClientActivity.F();
return;
} else {
billingClientActivity.G();
return;
}
case 1:
IapSkuItemWeek iapSkuItemWeek2 = billingClientActivity.C.f36776j;
if (iapSkuItemWeek2.f6786b) {
billingClientActivity.G();
return;
}
iapSkuItemWeek2.setItemActive(true);
billingClientActivity.C.f36777k.setItemActive(false);
billingClientActivity.C.f36775i.setItemActive(false);
billingClientActivity.I();
return;
default:
int i14 = BillingClientActivity.D;
billingClientActivity.x();
return;
}
}
});
this.C.f36773g.setOnClickListener(new View.OnClickListener(this) {
public final BillingClientActivity f34804c;
{
this.f34804c = this;
}
@Override
public final void onClick(View view) {
int i12 = r2;
BillingClientActivity billingClientActivity = this.f34804c;
switch (i12) {
case 0:
int i13 = BillingClientActivity.D;
billingClientActivity.getClass();
e8.a.c("subs_click_free_trial");
billingClientActivity.E();
return;
case 1:
y3.b bVar2 = billingClientActivity.C;
if (bVar2.f36775i.f6783b) {
billingClientActivity.F();
return;
}
bVar2.f36776j.setItemActive(false);
billingClientActivity.C.f36777k.setItemActive(false);
billingClientActivity.C.f36775i.setItemActive(true);
billingClientActivity.I();
return;
default:
String str = billingClientActivity.A;
String s10 = str == null ? "https://telegram.me/HexonMods" : android.support.v4.media.b.s(new Object[]{str, billingClientActivity.getApplicationContext().getPackageName()}, 2, "https://play.google.com/store/account/subscriptions?sku=%s&package=%s", "format(...)");
Intent intent = new Intent("android.intent.action.VIEW");
intent.setData(Uri.parse(s10));
billingClientActivity.startActivity(intent);
return;
}
}
});
this.C.f36772f.setOnClickListener(new View.OnClickListener(this) {
public final BillingClientActivity f34800c;
{
this.f34800c = this;
}
@Override
public final void onClick(View view) {
int i12 = r2;
BillingClientActivity billingClientActivity = this.f34800c;
switch (i12) {
case 0:
int i13 = BillingClientActivity.D;
billingClientActivity.getClass();
if (s3.b.c().a()) {
billingClientActivity.B();
return;
} else if (billingClientActivity.A()) {
billingClientActivity.B();
return;
} else {
billingClientActivity.C();
return;
}
case 1:
int i14 = BillingClientActivity.D;
billingClientActivity.getClass();
s3.b.c().g(true);
return;
default:
y3.b bVar2 = billingClientActivity.C;
if (bVar2.f36777k.f6789b) {
billingClientActivity.H();
return;
}
bVar2.f36776j.setItemActive(false);
billingClientActivity.C.f36777k.setItemActive(true);
billingClientActivity.C.f36775i.setItemActive(false);
billingClientActivity.I();
return;
}
}
});
this.C.f36776j.setOnClickListener(new View.OnClickListener(this) {
public final BillingClientActivity f34802c;
{
this.f34802c = this;
}
@Override
public final void onClick(View view) {
int i12 = r2;
BillingClientActivity billingClientActivity = this.f34802c;
switch (i12) {
case 0:
int i13 = BillingClientActivity.D;
billingClientActivity.getClass();
e8.a.c("subs_click_get_premium");
y3.b bVar2 = billingClientActivity.C;
if (bVar2.f36777k.f6789b) {
billingClientActivity.H();
return;
} else if (bVar2.f36775i.f6783b) {
billingClientActivity.F();
return;
} else {
billingClientActivity.G();
return;
}
case 1:
IapSkuItemWeek iapSkuItemWeek2 = billingClientActivity.C.f36776j;
if (iapSkuItemWeek2.f6786b) {
billingClientActivity.G();
return;
}
iapSkuItemWeek2.setItemActive(true);
billingClientActivity.C.f36777k.setItemActive(false);
billingClientActivity.C.f36775i.setItemActive(false);
billingClientActivity.I();
return;
default:
int i14 = BillingClientActivity.D;
billingClientActivity.x();
return;
}
}
});
this.C.f36775i.setOnClickListener(new View.OnClickListener(this) {
public final BillingClientActivity f34804c;
{
this.f34804c = this;
}
@Override
public final void onClick(View view) {
int i12 = r2;
BillingClientActivity billingClientActivity = this.f34804c;
switch (i12) {
case 0:
int i13 = BillingClientActivity.D;
billingClientActivity.getClass();
e8.a.c("subs_click_free_trial");
billingClientActivity.E();
return;
case 1:
y3.b bVar2 = billingClientActivity.C;
if (bVar2.f36775i.f6783b) {
billingClientActivity.F();
return;
}
bVar2.f36776j.setItemActive(false);
billingClientActivity.C.f36777k.setItemActive(false);
billingClientActivity.C.f36775i.setItemActive(true);
billingClientActivity.I();
return;
default:
String str = billingClientActivity.A;
String s10 = str == null ? "https://telegram.me/HexonMods" : android.support.v4.media.b.s(new Object[]{str, billingClientActivity.getApplicationContext().getPackageName()}, 2, "https://play.google.com/store/account/subscriptions?sku=%s&package=%s", "format(...)");
Intent intent = new Intent("android.intent.action.VIEW");
intent.setData(Uri.parse(s10));
billingClientActivity.startActivity(intent);
return;
}
}
});
this.C.f36777k.setOnClickListener(new View.OnClickListener(this) {
public final BillingClientActivity f34800c;
{
this.f34800c = this;
}
@Override
public final void onClick(View view) {
int i12 = r2;
BillingClientActivity billingClientActivity = this.f34800c;
switch (i12) {
case 0:
int i13 = BillingClientActivity.D;
billingClientActivity.getClass();
if (s3.b.c().a()) {
billingClientActivity.B();
return;
} else if (billingClientActivity.A()) {
billingClientActivity.B();
return;
} else {
billingClientActivity.C();
return;
}
case 1:
int i14 = BillingClientActivity.D;
billingClientActivity.getClass();
s3.b.c().g(true);
return;
default:
y3.b bVar2 = billingClientActivity.C;
if (bVar2.f36777k.f6789b) {
billingClientActivity.H();
return;
}
bVar2.f36776j.setItemActive(false);
billingClientActivity.C.f36777k.setItemActive(true);
billingClientActivity.C.f36775i.setItemActive(false);
billingClientActivity.I();
return;
}
}
});
this.C.f36776j.setItemActive(true);
this.C.f36775i.setItemActive(false);
this.C.f36777k.setItemActive(false);
this.C.f36781o.setOnClickListener(new View.OnClickListener(this) {
public final BillingClientActivity f34802c;
{
this.f34802c = this;
}
@Override
public final void onClick(View view) {
int i12 = r2;
BillingClientActivity billingClientActivity = this.f34802c;
switch (i12) {
case 0:
int i13 = BillingClientActivity.D;
billingClientActivity.getClass();
e8.a.c("subs_click_get_premium");
y3.b bVar2 = billingClientActivity.C;
if (bVar2.f36777k.f6789b) {
billingClientActivity.H();
return;
} else if (bVar2.f36775i.f6783b) {
billingClientActivity.F();
return;
} else {
billingClientActivity.G();
return;
}
case 1:
IapSkuItemWeek iapSkuItemWeek2 = billingClientActivity.C.f36776j;
if (iapSkuItemWeek2.f6786b) {
billingClientActivity.G();
return;
}
iapSkuItemWeek2.setItemActive(true);
billingClientActivity.C.f36777k.setItemActive(false);
billingClientActivity.C.f36775i.setItemActive(false);
billingClientActivity.I();
return;
default:
int i14 = BillingClientActivity.D;
billingClientActivity.x();
return;
}
}
});
this.f6604z = getIntent().getStringExtra("key_from");
s3.b.c().f30950i = this.f6604z;
Bundle bundle = new Bundle();
bundle.putString("source", this.f6604z);
e8.a.b(bundle, "subs_enter");
if (this.f28641n) {
FrameLayout.LayoutParams layoutParams = (FrameLayout.LayoutParams) this.C.f36771e.getLayoutParams();
layoutParams.setMargins(0, r7.b.a(), 0, 0);
this.C.f36771e.setLayoutParams(layoutParams);
}
this.C.f36767a.setVisibility(0);
ObjectAnimator ofFloat = ObjectAnimator.ofFloat(this.C.f36767a, View.ALPHA, 0.0f, 1.0f, 0.0f);
ofFloat.setDuration(1000L);
ofFloat.setStartDelay(500L);
ofFloat.setRepeatMode(2);
ofFloat.setRepeatCount(-1);
ObjectAnimator ofFloat2 = ObjectAnimator.ofFloat(this.C.f36767a, View.TRANSLATION_X, 0.0f, k.a(8.0f), 0.0f);
ofFloat2.setDuration(1000L);
ofFloat2.setStartDelay(500L);
ofFloat2.setRepeatMode(2);
ofFloat2.setRepeatCount(-1);
AnimatorSet animatorSet = new AnimatorSet();
animatorSet.play(ofFloat).with(ofFloat2);
animatorSet.setInterpolator(new LinearInterpolator());
animatorSet.start();
this.C.f36770d.setOnClickListener(new View.OnClickListener(this) {
public final BillingClientActivity f34804c;
{
this.f34804c = this;
}
@Override
public final void onClick(View view) {
int i12 = r2;
BillingClientActivity billingClientActivity = this.f34804c;
switch (i12) {
case 0:
int i13 = BillingClientActivity.D;
billingClientActivity.getClass();
e8.a.c("subs_click_free_trial");
billingClientActivity.E();
return;
case 1:
y3.b bVar2 = billingClientActivity.C;
if (bVar2.f36775i.f6783b) {
billingClientActivity.F();
return;
}
bVar2.f36776j.setItemActive(false);
billingClientActivity.C.f36777k.setItemActive(false);
billingClientActivity.C.f36775i.setItemActive(true);
billingClientActivity.I();
return;
default:
String str = billingClientActivity.A;
String s10 = str == null ? "https://telegram.me/HexonMods" : android.support.v4.media.b.s(new Object[]{str, billingClientActivity.getApplicationContext().getPackageName()}, 2, "https://play.google.com/store/account/subscriptions?sku=%s&package=%s", "format(...)");
Intent intent = new Intent("android.intent.action.VIEW");
intent.setData(Uri.parse(s10));
billingClientActivity.startActivity(intent);
return;
}
}
});
getOnBackPressedDispatcher().a(this, new b());
return;
}
}
}
}
}
i10 = i11;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
throw new NullPointerException("Missing required view with ID: ".concat(inflate.getResources().getResourceName(i10)));
}
}