正在查看: Fancy Optimizer v4.6.3 应用的 SpringFestivalSaleActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Fancy Optimizer v4.6.3 应用的 SpringFestivalSaleActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.fancyclean.boost.main.ui.activity;
import android.app.Dialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.widget.FrameLayout;
import android.widget.ImageView;
import android.widget.TextView;
import androidx.annotation.LayoutRes;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.core.content.ContextCompat;
import com.facebook.internal.i0;
import com.thinkyeah.common.ui.dialog.c;
import com.thinkyeah.common.ui.view.FlashButton;
import com.thinkyeah.license.ui.presenter.LicenseUpgradePresenter;
import java.text.DecimalFormat;
import java.util.Calendar;
import java.util.Currency;
import java.util.List;
import t4.g;
import tl.m;
import vj.h;
import vl.b;
public class SpringFestivalSaleActivity extends b {
public static final h f190y = new h("SpringFestivalSaleActivity");
public m t = null;
public TextView u;
public TextView v;
public TextView w;
public TextView f191x;
public static class a extends c<SpringFestivalSaleActivity> {
public static final int c = 0;
@NonNull
public final Dialog onCreateDialog(@Nullable Bundle bundle) {
c.a aVar = new c.a(getActivity());
aVar.g(2131886717);
aVar.c(2131886662);
aVar.e(2131887268, (DialogInterface.OnClickListener) null);
aVar.d(2131886837, new g(this, 6));
return aVar.a();
}
public final void onStart() {
super/*androidx.fragment.app.DialogFragment*/.onStart();
Context context = getContext();
if (context != null) {
getDialog().getButton(-2).setTextColor(ContextCompat.getColor(context, 2131100607));
}
}
}
public final void E(List<m> list, tl.b bVar) {
String str;
if (list == null || list.isEmpty()) {
return;
}
m mVar = list.get(bVar.b);
this.t = mVar;
m.b a10 = mVar.a();
Currency currency = Currency.getInstance(a10.b);
DecimalFormat decimalFormat = new DecimalFormat("0.00");
this.u.getPaint().setFlags(this.u.getPaintFlags() | 16);
tl.a aVar = this.t.c;
if (aVar != null) {
this.w.setText(getString(2131887577));
} else {
this.w.setVisibility(8);
}
if (aVar == null || aVar.b == 5) {
str = currency.getSymbol() + decimalFormat.format(a10.a);
} else {
str = currency.getSymbol() + decimalFormat.format(f3(aVar, a10.a));
}
this.v.setText(str);
String l = nk.b.v().l("app", "PlayIabProPriceDiscount", "0%");
int parseInt = Integer.parseInt(l.substring(0, l.indexOf("%")));
double d = parseInt / 100.0d;
if (d <= 0.0d) {
this.u.setVisibility(8);
return;
}
double d10 = 1.0d - d;
if (d10 > 0.001d) {
this.u.setText(currency.getSymbol() + decimalFormat.format(f3(aVar, a10.a / d10)));
}
this.f191x.setText(getString(2131887572, Integer.valueOf(parseInt)));
}
public final void J() {
f190y.c("==> showLicenseUpgraded");
finish();
}
public final long X2() {
return getSharedPreferences("main", 0) != null ? r0.getInt("launch_times", 0) : 0;
}
public final void Y0() {
f190y.c("==> showLoadingIabPrice");
}
@LayoutRes
public final int Y2() {
return 2131558525;
}
public final long Z2() {
return com.google.ads.mediation.unity.b.t(this);
}
public final String a3() {
return "SpringFestival";
}
public final LicenseUpgradePresenter.c b3() {
return LicenseUpgradePresenter.c.f;
}
public final void c3() {
this.v = (TextView) findViewById(2131363640);
this.w = (TextView) findViewById(2131363708);
this.f191x = (TextView) findViewById(2131363564);
TextView textView = (TextView) findViewById(2131363625);
this.u = textView;
textView.getPaint().setFlags(16);
FrameLayout frameLayout = (FrameLayout) findViewById(2131362221);
if (ml.b.s(this)) {
frameLayout.setBackgroundResource(2131231609);
} else {
frameLayout.setBackgroundResource(2131231608);
}
((ImageView) findViewById(2131362418)).setOnClickListener(new i0(this, 17));
FlashButton findViewById = findViewById(2131362033);
findViewById.setFlashEnabled(true);
findViewById.setOnClickListener(new t4.b(this, 17));
}
public final double f3(tl.a aVar, double d) {
if (aVar == null) {
return d;
}
int i = aVar.b;
if (i == 5) {
return d;
}
int c = l.b.c(i);
int i10 = aVar.a;
return c != 0 ? c != 1 ? c != 2 ? c != 3 ? d : (d / i10) / 12.0d : d / i10 : (d / i10) * 4.0d : (d / i10) * 30.0d;
}
public final void onBackPressed() {
new a().j0(this, "ConfirmExitDiscountDialogFragment");
}
public final void onCreate(Bundle bundle) {
super.onCreate(bundle);
ml.b.u(getWindow(), -1749964);
Intent intent = getIntent();
if (intent == null || intent.getBooleanExtra("intent_key_jump_from_notification", false)) {
return;
}
int i = Calendar.getInstance().get(6);
SharedPreferences sharedPreferences = getSharedPreferences("main", 0);
SharedPreferences.Editor edit = sharedPreferences == null ? null : sharedPreferences.edit();
if (edit == null) {
return;
}
edit.putInt("show_spring_festival_sale_year", i);
edit.apply();
}
public final void u0() {
f190y.c("==> onJumpedToGooglePlayToResume");
}
public final void w() {
f190y.c("==> showAsProLicenseUpgradedMode");
finish();
}
public final void B1() {
}
public final void e3() {
}
}