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

60 lines
1.6 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package o;
import android.content.SharedPreferences;
import com.google.gson.Gson;
import java.util.ArrayList;
import java.util.List;
/* renamed from: o.pHL, reason: case insensitive filesystem */
/* loaded from: classes3.dex */
public final class C16546pHL implements ESC {
private final SharedPreferences a;
private final Gson c;
@InterfaceC13391fZD
public C16546pHL(SharedPreferences sharedPreferences, Gson gson) {
C14957gcv.e(sharedPreferences, "");
C14957gcv.e(gson, "");
this.a = sharedPreferences;
this.c = gson;
}
/* renamed from: o.pHL$IeS */
/* loaded from: classes3.dex */
public static final class IeS {
private IeS() {
}
public /* synthetic */ IeS(byte b) {
this();
}
}
@Override // o.ESC
public final List<String> b() {
String string = this.a.getString("KEY_REWARD_SEARCH_CACHE", null);
if (string != null) {
Object fromJson = this.c.fromJson(string, (Class<Object>) new ArrayList().getClass());
C14957gcv.c(fromJson, "");
List<String> list = (List) fromJson;
if (list != null) {
return list;
}
}
return C14851gaI.c;
}
@Override // o.ESC
public final void b(List<String> list) {
C14957gcv.e(list, "");
SharedPreferences.Editor edit = this.a.edit();
String json = this.c.toJson(list);
C14957gcv.c((Object) json, "");
edit.putString("KEY_REWARD_SEARCH_CACHE", json).apply();
}
static {
new IeS((byte) 0);
}
}