导航菜单

页面标题

页面副标题

MX Player v1.97.8 - AdFreeSettingsActivity.java 源代码

正在查看: MX Player v1.97.8 应用的 AdFreeSettingsActivity.java JAVA 源代码文件

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


package com.mxtech.videoplayer.ad.online.features.adfree.view;

import android.graphics.Typeface;
import android.os.Bundle;
import android.view.View;
import android.widget.CheckBox;
import android.widget.TextView;
import com.m.x.player.pandora.common.fromstack.From;
import com.mxtech.videoplayer.ad.online.model.bean.ConfigPostUtil;
import defpackage.al;
import defpackage.gfh;
import defpackage.i0g;
import defpackage.mdg;
import defpackage.weh;
import defpackage.xxc;

public class AdFreeSettingsActivity extends xxc {
    public static final int B = 0;
    public final a A = new a();
    public CheckBox u;
    public CheckBox v;
    public TextView w;
    public TextView x;
    public Typeface y;
    public Typeface z;

    public class a implements View.OnClickListener {
        public a() {
        }

        @Override
        public final void onClick(View view) {
            int id = view.getId();
            AdFreeSettingsActivity adFreeSettingsActivity = AdFreeSettingsActivity.this;
            if (id == 2131362561 || id == 2131366881) {
                int i = AdFreeSettingsActivity.B;
                adFreeSettingsActivity.p6(true);
                al.c(1);
                mdg mdgVar = new mdg("adfreeOptionClicked", weh.c);
                d0d.c(mdgVar, "button", 1);
                gfh.d(mdgVar);
            } else if (view.getId() == 2131362588 || id == 2131367328 || id == 2131366948) {
                int i2 = AdFreeSettingsActivity.B;
                adFreeSettingsActivity.p6(false);
                al.c(0);
                mdg mdgVar2 = new mdg("adfreeOptionClicked", weh.c);
                d0d.c(mdgVar2, "button", 2);
                gfh.d(mdgVar2);
            }
            ConfigPostUtil.postAdFreeConfig(null);
        }
    }

    @Override
    public final From d6() {
        return From.create("adFreeSettings", "adFreeSettings", "adFreeSettings");
    }

    @Override
    public final int j6() {
        return 2131558434;
    }

    @Override
    public final void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        setTheme(i0g.b().h("history_activity_theme"));
        k6(2131889596);
        this.u = (CheckBox) findViewById(2131362561);
        this.v = (CheckBox) findViewById(2131362588);
        this.w = (TextView) findViewById(2131366881);
        this.x = (TextView) findViewById(2131367328);
        TextView textView = (TextView) findViewById(2131366948);
        CheckBox checkBox = this.u;
        a aVar = this.A;
        checkBox.setOnClickListener(aVar);
        this.v.setOnClickListener(aVar);
        this.w.setOnClickListener(aVar);
        this.x.setOnClickListener(aVar);
        textView.setOnClickListener(aVar);
        this.y = this.w.getTypeface();
        this.z = this.x.getTypeface();
        p6(al.a().getInt("key_ad_free_always", 0) == 1);
    }

    public final void p6(boolean z) {
        if (z) {
            this.u.setChecked(true);
            this.v.setChecked(false);
            this.w.setTypeface(this.z);
            this.x.setTypeface(this.y);
            return;
        }
        this.u.setChecked(false);
        this.v.setChecked(true);
        this.w.setTypeface(this.y);
        this.x.setTypeface(this.z);
    }
}