导航菜单

页面标题

页面副标题

Your TV v2.0.2 - N1.java 源代码

正在查看: Your TV v2.0.2 应用的 N1.java JAVA 源代码文件

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


package G0;

import android.app.UiModeManager;
import android.content.SharedPreferences;
import android.content.pm.PackageManager;
import com.google.gson.Gson;
import com.horsenma.yourtv.YourTVApplication;
import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.List;
import java.util.Set;

public abstract class N1 {

    public static boolean f801a = false;

    public static boolean f802b = true;

    public static SharedPreferences f803c;

    public static final Gson f804d;

    public static final Type f805e;

    public static final M0.h f806f;

    static {
        H0.a.INSTANCE.getClass();
        f804d = H0.a.b();
        f805e = H0.a.f();
        f806f = new M0.h(new M1(0));
    }

    public static boolean a() {
        SharedPreferences sharedPreferences = f803c;
        if (sharedPreferences != null) {
            return sharedPreferences.getBoolean("auto_switch_source", false);
        }
        kotlin.jvm.internal.j.i("sp");
        throw null;
    }

    public static boolean b() {
        SharedPreferences sharedPreferences = f803c;
        if (sharedPreferences != null) {
            return sharedPreferences.getBoolean("channel_num", false);
        }
        kotlin.jvm.internal.j.i("sp");
        throw null;
    }

    public static boolean c() {
        SharedPreferences sharedPreferences = f803c;
        if (sharedPreferences != null) {
            return sharedPreferences.getBoolean("channel_reversal", false);
        }
        kotlin.jvm.internal.j.i("sp");
        throw null;
    }

    public static boolean d() {
        SharedPreferences sharedPreferences = f803c;
        if (sharedPreferences != null) {
            return sharedPreferences.getBoolean("compact_menu", true);
        }
        kotlin.jvm.internal.j.i("sp");
        throw null;
    }

    public static boolean e() {
        SharedPreferences sharedPreferences = f803c;
        if (sharedPreferences != null) {
            return sharedPreferences.getBoolean("default_like", false);
        }
        kotlin.jvm.internal.j.i("sp");
        throw null;
    }

    public static boolean f() {
        SharedPreferences sharedPreferences = f803c;
        if (sharedPreferences != null) {
            return sharedPreferences.getBoolean("enable_screen_off_audio", true);
        }
        kotlin.jvm.internal.j.i("sp");
        throw null;
    }

    public static String g() {
        SharedPreferences sharedPreferences = f803c;
        if (sharedPreferences != null) {
            return sharedPreferences.getString("epg", "https://live.fanmingming.cn/e.xml,https://raw.githubusercontent.com/fanmingming/live/main/e.xml");
        }
        kotlin.jvm.internal.j.i("sp");
        throw null;
    }

    public static boolean h() {
        SharedPreferences sharedPreferences = f803c;
        return sharedPreferences == null ? f802b : sharedPreferences.getBoolean("full_screen_mode", f802b);
    }

    public static boolean i(int i2) {
        SharedPreferences sharedPreferences = f803c;
        if (sharedPreferences == null) {
            kotlin.jvm.internal.j.i("sp");
            throw null;
        }
        Set<String> stringSet = sharedPreferences.getStringSet("like", N0.x.f1681a);
        if (stringSet != null) {
            return stringSet.contains(String.valueOf(i2));
        }
        return false;
    }

    public static String j() {
        SharedPreferences sharedPreferences = f803c;
        if (sharedPreferences != null) {
            return sharedPreferences.getString("proxy", "");
        }
        kotlin.jvm.internal.j.i("sp");
        throw null;
    }

    public static boolean k() {
        SharedPreferences sharedPreferences = f803c;
        if (sharedPreferences != null) {
            return sharedPreferences.getBoolean("show_all_channels", false);
        }
        kotlin.jvm.internal.j.i("sp");
        throw null;
    }

    public static boolean l() {
        SharedPreferences sharedPreferences = f803c;
        if (sharedPreferences != null) {
            return sharedPreferences.getBoolean("show_progress_bar", true);
        }
        kotlin.jvm.internal.j.i("sp");
        throw null;
    }

    public static boolean m() {
        SharedPreferences sharedPreferences = f803c;
        if (sharedPreferences != null) {
            return sharedPreferences.getBoolean("show_source_button", true);
        }
        kotlin.jvm.internal.j.i("sp");
        throw null;
    }

    public static boolean n() {
        SharedPreferences sharedPreferences = f803c;
        if (sharedPreferences != null) {
            return sharedPreferences.getBoolean("soft_decode", f801a);
        }
        kotlin.jvm.internal.j.i("sp");
        throw null;
    }

    public static String o() {
        SharedPreferences sharedPreferences = f803c;
        if (sharedPreferences != null) {
            String string = sharedPreferences.getString("sources", null);
            return string == null ? "" : string;
        }
        kotlin.jvm.internal.j.i("sp");
        throw null;
    }

    public static List p() {
        SharedPreferences sharedPreferences = f803c;
        if (sharedPreferences == null) {
            kotlin.jvm.internal.j.i("sp");
            throw null;
        }
        String string = sharedPreferences.getString("stable_sources", null);
        N0.v vVar = N0.v.f1679a;
        if (string != null) {
            try {
                Object fromJson = f804d.fromJson(string, f805e);
                kotlin.jvm.internal.j.c(fromJson, "null cannot be cast to non-null type kotlin.collections.List<com.horsenma.yourtv.data.StableSource>");
                ArrayList arrayList = new ArrayList();
                for (Object obj : (List) fromJson) {
                    if (System.currentTimeMillis() - ((H0.i) obj).q() < 604800000) {
                        arrayList.add(obj);
                    }
                }
                return arrayList;
            } catch (Exception unused) {
            }
        }
        return vVar;
    }

    public static boolean q() {
        SharedPreferences sharedPreferences = f803c;
        if (sharedPreferences != null) {
            return sharedPreferences.getBoolean("user_x5_webview", false);
        }
        kotlin.jvm.internal.j.i("sp");
        throw null;
    }

    public static boolean r(YourTVApplication yourTVApplication) {
        PackageManager packageManager = yourTVApplication.getPackageManager();
        Object systemService = yourTVApplication.getSystemService("uimode");
        UiModeManager uiModeManager = systemService instanceof UiModeManager ? (UiModeManager) systemService : null;
        return packageManager.hasSystemFeature("android.hardware.touchscreen") && !(uiModeManager != null && uiModeManager.getCurrentModeType() == 4);
    }

    public static void s(boolean z2) {
        SharedPreferences sharedPreferences = f803c;
        if (sharedPreferences != null) {
            A.g.v(sharedPreferences, "autoDownX5", z2);
        } else {
            kotlin.jvm.internal.j.i("sp");
            throw null;
        }
    }

    public static void t(boolean z2) {
        SharedPreferences sharedPreferences = f803c;
        if (sharedPreferences != null) {
            A.g.v(sharedPreferences, "compact_menu", z2);
        } else {
            kotlin.jvm.internal.j.i("sp");
            throw null;
        }
    }

    public static void u(boolean z2) {
        SharedPreferences sharedPreferences = f803c;
        if (sharedPreferences != null) {
            A.g.v(sharedPreferences, "full_screen_mode", z2);
            ((androidx.lifecycle.J) f806f.a()).i(Boolean.valueOf(z2));
        }
    }

    public static void v(String str) {
        SharedPreferences sharedPreferences = f803c;
        if (sharedPreferences == null) {
            kotlin.jvm.internal.j.i("sp");
            throw null;
        }
        SharedPreferences.Editor edit = sharedPreferences.edit();
        edit.putString("sources", str);
        edit.apply();
    }

    public static void w(List list) {
        String json = f804d.toJson(list, f805e);
        SharedPreferences sharedPreferences = f803c;
        if (sharedPreferences == null) {
            kotlin.jvm.internal.j.i("sp");
            throw null;
        }
        SharedPreferences.Editor edit = sharedPreferences.edit();
        edit.putString("stable_sources", json);
        edit.apply();
    }

    public static void x(boolean z2) {
        SharedPreferences sharedPreferences = f803c;
        if (sharedPreferences != null) {
            A.g.v(sharedPreferences, "time", z2);
        } else {
            kotlin.jvm.internal.j.i("sp");
            throw null;
        }
    }
}