大漢易經書院.apk(点击下载) / bw.java


package com.xiaomi.push;

import android.content.Context;
import android.content.SharedPreferences;

public class bw {
    private static volatile bw a;

    /* renamed from: a  reason: collision with other field name */
    private Context f6785a;

    private bw(Context context) {
        this.f6785a = context;
    }

    public static bw a(Context context) {
        if (a == null) {
            synchronized (bw.class) {
                if (a == null) {
                    a = new bw(context);
                }
            }
        }
        return a;
    }

    public synchronized long a(String str, String str2, long j) {
        try {
        } catch (Throwable unused) {
            return j;
        }
        return this.f6785a.getSharedPreferences(str, 4).getLong(str2, j);
    }

    public synchronized String a(String str, String str2, String str3) {
        try {
        } catch (Throwable unused) {
            return str3;
        }
        return this.f6785a.getSharedPreferences(str, 4).getString(str2, str3);
    }

    /* renamed from: a  reason: collision with other method in class */
    public synchronized void m9171a(String str, String str2, long j) {
        SharedPreferences.Editor edit = this.f6785a.getSharedPreferences(str, 4).edit();
        edit.putLong(str2, j);
        edit.commit();
    }

    /* renamed from: a  reason: collision with other method in class */
    public synchronized void m9172a(String str, String str2, String str3) {
        SharedPreferences.Editor edit = this.f6785a.getSharedPreferences(str, 4).edit();
        edit.putString(str2, str3);
        edit.commit();
    }
}