导航菜单

页面标题

页面副标题

Fancy Optimizer v4.6.3 - SuggestRemoveAdsActivity.java 源代码

正在查看: Fancy Optimizer v4.6.3 应用的 SuggestRemoveAdsActivity.java JAVA 源代码文件

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


package com.fancyclean.boost.main.ui.activity;

import android.content.SharedPreferences;
import android.os.Bundle;
import android.text.Html;
import android.text.SpannableStringBuilder;
import android.text.style.AbsoluteSizeSpan;
import android.text.style.ForegroundColorSpan;
import android.text.style.StyleSpan;
import android.widget.ImageView;
import android.widget.TextView;
import androidx.annotation.LayoutRes;
import com.thinkyeah.common.ui.view.FlashButton;
import com.thinkyeah.license.ui.presenter.LicenseUpgradePresenter;
import gl.d;
import java.text.DecimalFormat;
import java.util.Currency;
import java.util.List;
import kotlin.jvm.internal.s;
import tl.a;
import tl.m;
import vj.h;
import vl.b;

@d(LicenseUpgradePresenter.class)
public class SuggestRemoveAdsActivity extends b {
    public static final h w = new h("SuggestRemoveAdsActivity");
    public m t = null;
    public TextView u;
    public FlashButton v;

    public final void E(List<m> list, tl.b bVar) {
        if (list == null || list.isEmpty()) {
            return;
        }
        m mVar = list.get(0);
        this.t = mVar;
        if (mVar == null || !mVar.d) {
            this.v.setText(2131887999);
            return;
        }
        m.b a = mVar.a();
        Currency currency = Currency.getInstance(a.b);
        a aVar = this.t.c;
        DecimalFormat decimalFormat = new DecimalFormat("0.00");
        this.u.setText(getString(2131887545, s.h(this, aVar, currency + decimalFormat.format(a.a))));
        int i = this.t.e;
        if (i > 0) {
            String string = getString(2131886474, Integer.valueOf(i));
            String string2 = getString(2131886119, s.i(this, aVar, currency.getSymbol().toUpperCase() + decimalFormat.format(a.a)));
            String C = android.support.v4.media.b.C(string2, "\n", string);
            this.v.setText(C);
            SpannableStringBuilder spannableStringBuilder = new SpannableStringBuilder(this.v.getText().toString());
            ForegroundColorSpan foregroundColorSpan = new ForegroundColorSpan(getResources().getColor(2131099850));
            spannableStringBuilder.setSpan(new AbsoluteSizeSpan(16, true), 0, string2.length(), 33);
            spannableStringBuilder.setSpan(new AbsoluteSizeSpan(11, true), string2.length(), C.length(), 33);
            spannableStringBuilder.setSpan(foregroundColorSpan, string2.length(), C.length(), 18);
            spannableStringBuilder.setSpan(new StyleSpan(1), 0, string2.length(), 33);
            this.v.setText(spannableStringBuilder);
        }
    }

    public final void J() {
        w.c("==> showLicenseUpgraded");
        finish();
    }

    public final long X2() {
        return getSharedPreferences("main", 0) != null ? r0.getInt("launch_times", 0) : 0;
    }

    public final void Y0() {
        w.c("==> showLoadingIabPrice");
    }

    @LayoutRes
    public final int Y2() {
        return 2131558528;
    }

    public final long Z2() {
        return com.google.ads.mediation.unity.b.t(this);
    }

    public final String a3() {
        return "SuggestRemoveAds";
    }

    public final LicenseUpgradePresenter.c b3() {
        return LicenseUpgradePresenter.c.d;
    }

    public final void c3() {
        ((TextView) findViewById(2131363556)).setText(Html.fromHtml(getString(2131886594)));
        this.v = findViewById(2131362033);
        ((ImageView) findViewById(2131362418)).setOnClickListener(new t4.b(this, 18));
        this.v.setFlashEnabled(true);
        this.v.setOnClickListener(new t4.d(this, 16));
        this.u = (TextView) findViewById(2131363539);
    }

    public final void finish() {
        super/*android.app.Activity*/.finish();
        overridePendingTransition(0, 0);
        if (c7.b.a(this)) {
            return;
        }
        SharedPreferences sharedPreferences = getSharedPreferences("main", 0);
        if (sharedPreferences != null ? sharedPreferences.getBoolean("shud_show_suggest_one_off_sale", true) : true) {
            SuggestOneSaleActivity.f3(this);
        }
    }

    public final void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        SharedPreferences sharedPreferences = getSharedPreferences("main", 0);
        SharedPreferences.Editor edit = sharedPreferences == null ? null : sharedPreferences.edit();
        if (edit == null) {
            return;
        }
        edit.putBoolean("should_show_suggest_remove_ads", false);
        edit.apply();
    }

    public final void u0() {
        w.c("==> onJumpedToGooglePlayToResume");
    }

    public final void w() {
        w.c("==> showAsProLicenseUpgradedMode");
        finish();
    }

    public final void B1() {
    }

    public final void e3() {
    }
}