导航菜单

页面标题

页面副标题

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

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

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


package com.mxtech.videoplayer.ad.online.ad.theatermode;

import android.os.Bundle;
import android.view.View;
import androidx.appcompat.widget.SwitchCompat;
import com.m.x.player.pandora.common.fromstack.From;
import com.mxtech.videoplayer.ad.online.ad.theatermode.a;
import defpackage.gfh;
import defpackage.i0g;
import defpackage.mdg;
import defpackage.tya;
import defpackage.weh;
import defpackage.xxc;
import java.util.HashMap;

public class TheaterModeNavSettingsActivity extends xxc implements View.OnClickListener {
    public static final int w = 0;
    public SwitchCompat u;
    public boolean v = false;

    @Override
    public final From d6() {
        return null;
    }

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

    @Override
    public void onClick(View view) {
        if (view.getId() == 2131364700) {
            boolean z = !this.v;
            this.v = z;
            this.u.setChecked(z);
            if (this.v) {
                tya tyaVar = tya.m;
                xrf.f().edit().putInt("tm_user_consent", 0).apply();
            } else {
                tya tyaVar2 = tya.m;
                xrf.f().edit().putInt("tm_user_consent", 1).apply();
            }
            boolean z2 = this.v;
            mdg mdgVar = new mdg("choiceAdsDefaultSet", weh.c);
            HashMap hashMap = mdgVar.b;
            vf1.e(z2 ? 1 : 0, hashMap, "type", 0, "itemtype");
            hashMap.put("source", 0);
            gfh.d(mdgVar);
        }
    }

    @Override
    public final void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        setTheme(i0g.b().h("online_base_activity"));
        k6(2131890746);
        this.u = findViewById(2131367763);
        findViewById(2131364700).setOnClickListener(this);
        tya tyaVar = tya.m;
        if (a.EnumC0059a.values()[xrf.f().getInt("tm_user_consent", 2)].ordinal() != 0) {
            this.v = false;
        } else {
            this.v = true;
        }
        this.u.setChecked(this.v);
    }
}