package L4;

import M4.o;
import M4.p;
import android.content.SharedPreferences;
import java.io.FileOutputStream;
import java.util.concurrent.Callable;
import n4.u0;

/* JADX INFO: loaded from: classes.dex */
public final /* synthetic */ class b implements Callable {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final /* synthetic */ int f3994a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final /* synthetic */ Object f3995b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final /* synthetic */ Object f3996c;

    public /* synthetic */ b(Object obj, int i, Object obj2) {
        this.f3994a = i;
        this.f3995b = obj;
        this.f3996c = obj2;
    }

    private final Object a() {
        c cVar = (c) this.f3995b;
        h hVar = (h) this.f3996c;
        o oVar = cVar.f4003g;
        synchronized (oVar.f4286b) {
            SharedPreferences.Editor editorEdit = oVar.f4285a.edit();
            hVar.getClass();
            editorEdit.putLong("fetch_timeout_in_seconds", 60L).putLong("minimum_fetch_interval_in_seconds", hVar.f4006a).commit();
        }
        return null;
    }

    @Override // java.util.concurrent.Callable
    public final Object call() {
        switch (this.f3994a) {
            case u0.f15495q /* 0 */:
                return a();
            default:
                M4.d dVar = (M4.d) this.f3995b;
                M4.f fVar = (M4.f) this.f3996c;
                p pVar = dVar.f4222b;
                synchronized (pVar) {
                    FileOutputStream fileOutputStreamOpenFileOutput = pVar.f4290a.openFileOutput(pVar.f4291b, 0);
                    try {
                        fileOutputStreamOpenFileOutput.write(fVar.f4231a.toString().getBytes("UTF-8"));
                    } finally {
                        fileOutputStreamOpenFileOutput.close();
                    }
                }
                return null;
        }
    }
}
