导航菜单

页面标题

页面副标题

新暖心缘 v8.1.1 - n.java 源代码

正在查看: 新暖心缘 v8.1.1 应用的 n.java JAVA 源代码文件

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


package o6;

import android.content.Context;
import android.content.SharedPreferences;
import android.text.TextUtils;
import com.luanxingyuan.app.base.AppManager;
import com.luanxingyuan.app.bean.ChatUserInfo;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

public class n {

    class a extends w0.m<List<String>> {
        a() {
        }
    }

    public static void A(Context context, String str) {
        SharedPreferences.Editor edit = context.getSharedPreferences("jpush", 0).edit();
        edit.putString("alias", str);
        edit.apply();
    }

    public static void B(Context context, boolean z7) {
        SharedPreferences.Editor edit = context.getSharedPreferences("mute", 0).edit();
        edit.putBoolean("mute_mute", z7);
        edit.apply();
    }

    public static void C(Context context, String str) {
        SharedPreferences.Editor edit = context.getSharedPreferences("key_qq", 0).edit();
        edit.putString("qq", str);
        edit.apply();
    }

    public static void D(Context context, int i8) {
        SharedPreferences.Editor edit = context.getSharedPreferences("login", 0).edit();
        edit.putInt("t_role", i8);
        edit.apply();
    }

    public static void E(Context context, String str) {
        SharedPreferences.Editor edit = context.getSharedPreferences("key_share_id", 0).edit();
        edit.putString("share_user_id", str);
        edit.apply();
    }

    public static void F(Context context, String str) {
        SharedPreferences.Editor edit = context.getSharedPreferences("key_share", 0).edit();
        edit.putString("share_url", str);
        edit.apply();
    }

    public static void G(Context context, boolean z7) {
        SharedPreferences.Editor edit = context.getSharedPreferences("key_tip", 0).edit();
        edit.putBoolean("tip_sound", z7);
        edit.apply();
    }

    public static void H(Context context, boolean z7) {
        SharedPreferences.Editor edit = context.getSharedPreferences("key_tip", 0).edit();
        edit.putBoolean("tip_sound2", z7);
        edit.apply();
    }

    public static void I(Context context, boolean z7) {
        SharedPreferences.Editor edit = context.getSharedPreferences("key_tip", 0).edit();
        edit.putBoolean("tip_vibrate", z7);
        edit.apply();
    }

    public static void J(Context context, boolean z7) {
        SharedPreferences.Editor edit = context.getSharedPreferences("key_tip", 0).edit();
        edit.putBoolean("tip_vibrate2", z7);
        edit.apply();
    }

    public static void K(Context context, String str) {
        SharedPreferences.Editor edit = context.getSharedPreferences("login", 0).edit();
        edit.putString("nickName", str);
        edit.apply();
    }

    public static void L(Context context, int i8) {
        AppManager.f().k().t_is_vip = i8;
        SharedPreferences.Editor edit = context.getSharedPreferences("login", 0).edit();
        edit.putInt("t_is_vip", i8);
        edit.apply();
    }

    static void M(Context context, String str) {
        SharedPreferences.Editor edit = context.getSharedPreferences("im_filter", 0).edit();
        edit.putString("filter_word", str);
        edit.apply();
    }

    public static void N(Context context) {
        SharedPreferences.Editor edit = context.getSharedPreferences("young_mode", 0).edit();
        edit.putBoolean("have_show", true);
        edit.apply();
    }

    private static void O(Context context, String str) {
        SharedPreferences.Editor edit = context.getSharedPreferences("login", 0).edit();
        edit.putString("conversation_top", str);
        edit.apply();
    }

    public static void P(Context context, String str, boolean z7) {
        List<String> s8 = s(context);
        if (z7) {
            s8.remove(str);
        } else {
            if (s8.size() >= 30) {
                s8.remove(s8.size() - 1);
            }
            if (!s8.contains(str)) {
                s8.add(str);
            }
        }
        O(context, w0.a.u(s8));
    }

    public static void Q(Context context, String str) {
        SharedPreferences.Editor edit = context.getSharedPreferences("young_mode", 0).edit();
        edit.putString("young_mode_password", str);
        edit.apply();
    }

    public static ChatUserInfo a(Context context) {
        SharedPreferences sharedPreferences = context.getSharedPreferences("login", 0);
        ChatUserInfo chatUserInfo = new ChatUserInfo();
        chatUserInfo.t_id = sharedPreferences.getInt("t_id", 0);
        chatUserInfo.phone = sharedPreferences.getString("phone", "");
        chatUserInfo.t_is_vip = sharedPreferences.getInt("t_is_vip", 1);
        chatUserInfo.t_sex = sharedPreferences.getInt("t_sex", 2);
        chatUserInfo.t_role = sharedPreferences.getInt("t_role", 2);
        chatUserInfo.t_nickName = sharedPreferences.getString("nickName", "");
        chatUserInfo.headUrl = sharedPreferences.getString("headUrl", "");
        chatUserInfo.t_token = sharedPreferences.getString("t_token", "");
        chatUserInfo.t_phone_status = sharedPreferences.getInt("phone_bind", 1);
        if (TextUtils.isEmpty(AppManager.f().j())) {
            AppManager.f().x(sharedPreferences.getString("t_token", ""));
        }
        return chatUserInfo;
    }

    public static String b(Context context) {
        return context.getSharedPreferences("code", 0).getString("city", "");
    }

    public static String c(Context context) {
        return context.getSharedPreferences("code", 0).getString("code_lat", "");
    }

    public static String d(Context context) {
        return context.getSharedPreferences("code", 0).getString("code_lng", "");
    }

    static String e(Context context) {
        return context.getSharedPreferences("im_filter", 0).getString("filter_word", "");
    }

    public static boolean f(Context context) {
        return context.getSharedPreferences("young_mode", 0).getBoolean("have_show", false);
    }

    public static String g(Context context) {
        return context.getSharedPreferences("code", 0).getString("cip", "");
    }

    public static List<com.luanxingyuan.app.bean.a> h() {
        String string = AppManager.f().getSharedPreferences("code", 0).getString("IPADDRESS", "");
        if (TextUtils.isEmpty(string)) {
            return null;
        }
        return Arrays.asList((com.luanxingyuan.app.bean.a[]) w0.a.f(string, com.luanxingyuan.app.bean.a[].class));
    }

    public static String i(Context context) {
        return context.getSharedPreferences("jpush", 0).getString("alias", "");
    }

    public static String j(Context context) {
        return context.getSharedPreferences("key_qq", 0).getString("qq", "");
    }

    public static String k(Context context) {
        return context.getSharedPreferences("key_share_id", 0).getString("share_user_id", "");
    }

    public static String l(Context context) {
        return context.getSharedPreferences("key_share", 0).getString("share_image", "");
    }

    public static String m(Context context) {
        return context.getSharedPreferences("key_share", 0).getString("share_url", "");
    }

    public static boolean n(Context context) {
        return context.getSharedPreferences("key_tip", 0).getBoolean("tip_sound", true);
    }

    public static boolean o(Context context) {
        return context.getSharedPreferences("key_tip", 0).getBoolean("tip_sound2", false);
    }

    public static boolean p(Context context) {
        return context.getSharedPreferences("key_tip", 0).getBoolean("tip_vibrate", true);
    }

    public static boolean q(Context context) {
        return context.getSharedPreferences("key_tip", 0).getBoolean("tip_vibrate2", true);
    }

    public static String r() {
        return AppManager.f().getSharedPreferences("login", 0).getString("t_token", null);
    }

    public static List<String> s(Context context) {
        ArrayList arrayList = new ArrayList();
        try {
            String string = context.getSharedPreferences("login", 0).getString("conversation_top", "");
            if (!TextUtils.isEmpty(string)) {
                arrayList.addAll((List) w0.a.o(string, new a(), new z0.b[0]));
            }
        } catch (Exception unused) {
            O(context, null);
        }
        return arrayList;
    }

    public static String t(Context context) {
        return context.getSharedPreferences("young_mode", 0).getString("young_mode_password", "");
    }

    public static void u(Context context, ChatUserInfo chatUserInfo) {
        AppManager.f().x(chatUserInfo.t_token);
        SharedPreferences.Editor edit = context.getSharedPreferences("login", 0).edit();
        edit.putString("phone", chatUserInfo.phone);
        edit.putInt("t_id", chatUserInfo.t_id);
        edit.putInt("t_is_vip", chatUserInfo.t_is_vip);
        edit.putInt("t_role", chatUserInfo.t_role);
        edit.putInt("t_sex", chatUserInfo.t_sex);
        edit.putString("nickName", chatUserInfo.t_nickName);
        edit.putString("headUrl", chatUserInfo.headUrl);
        edit.putString("t_token", chatUserInfo.t_token);
        edit.putInt("phone_bind", chatUserInfo.t_phone_status);
        edit.apply();
        AppManager.f().x(chatUserInfo.t_token);
    }

    public static void v(Context context, String str) {
        SharedPreferences.Editor edit = context.getSharedPreferences("code", 0).edit();
        edit.putString("city", str);
        edit.apply();
    }

    public static void w(Context context, String str, String str2) {
        SharedPreferences.Editor edit = context.getSharedPreferences("code", 0).edit();
        edit.putString("code_lat", str);
        edit.putString("code_lng", str2);
        edit.apply();
    }

    public static void x(Context context, int i8) {
        SharedPreferences.Editor edit = context.getSharedPreferences("login", 0).edit();
        edit.putInt("t_sex", i8);
        edit.apply();
    }

    public static void y(Context context, String str) {
        SharedPreferences.Editor edit = context.getSharedPreferences("login", 0).edit();
        edit.putString("headUrl", str);
        edit.apply();
    }

    public static void z(Context context, String str) {
        SharedPreferences.Editor edit = context.getSharedPreferences("code", 0).edit();
        edit.putString("cip", str);
        edit.apply();
    }
}