what-the-bank/sources/o/xUo.java

56 lines
1.6 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package o;
import android.content.Context;
import android.content.ContextWrapper;
import android.content.SharedPreferences;
import java.util.Calendar;
import java.util.Locale;
/* loaded from: classes.dex */
public final class xUo {
private static String c = "th";
private static String e = Locale.ENGLISH.getLanguage();
public static ContextWrapper Di_(Context context) {
return new ContextWrapper(C14804gB.c(context));
}
public static int e() {
if (new Locale(e.toLowerCase(Locale.getDefault())).equals(new Locale("th"))) {
return 1;
}
return Calendar.getInstance(new Locale(e.toLowerCase(Locale.getDefault()))).getFirstDayOfWeek();
}
public static String b(Context context) {
return context.getSharedPreferences("pref_language", 0).getString("com.scb.phone.pref.key.LANGUAGE", c);
}
public static Locale c() {
return new Locale(e.toLowerCase(Locale.getDefault()));
}
public static Locale d(Context context) {
return new Locale(context.getSharedPreferences("pref_language", 0).getString("com.scb.phone.pref.key.LANGUAGE", c).toLowerCase(Locale.getDefault()));
}
public static void b(Context context, String str) {
e = str;
SharedPreferences.Editor edit = context.getSharedPreferences("pref_language", 0).edit();
edit.putString("com.scb.phone.pref.key.LANGUAGE", str);
edit.apply();
}
public static void d(String str) {
c = str;
}
public static String b() {
return e;
}
public static String d() {
return c;
}
}