翰林优商.apk(点击下载) / c.java


package com.baidu.liantian;

import android.content.Context;
import android.content.SharedPreferences;
import android.os.Build;
import com.baidu.liantian.utility.a;

/* compiled from: SofirePreferences */
public final class c {
    public SharedPreferences a;
    private SharedPreferences.Editor b;

    public c(Context context) {
        try {
            SharedPreferences sharedPreferences = context.getSharedPreferences("leroadliantiancfg_st", 4);
            this.a = sharedPreferences;
            this.b = sharedPreferences.edit();
        } catch (Throwable unused) {
            a.a();
        }
    }

    public final String a() {
        return this.a.getString("xytk", "");
    }

    public final String b() {
        return this.a.getString("xytk_m", "");
    }

    public final void a(String str) {
        this.b.putString("xytk_m", str);
        if (Build.VERSION.SDK_INT >= 9) {
            this.b.apply();
        } else {
            this.b.commit();
        }
    }
}