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 b() { String string = this.a.getString("KEY_REWARD_SEARCH_CACHE", null); if (string != null) { Object fromJson = this.c.fromJson(string, (Class) new ArrayList().getClass()); C14957gcv.c(fromJson, ""); List list = (List) fromJson; if (list != null) { return list; } } return C14851gaI.c; } @Override // o.ESC public final void b(List 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); } }