package nh;

import android.content.Context;
import java.io.File;
import nh.d;

/* loaded from: classes4.dex */
public final class f extends d {

    /* loaded from: classes4.dex */
    class a implements d.a {

        /* renamed from: a, reason: collision with root package name */
        final /* synthetic */ Context f30035a;

        /* renamed from: b, reason: collision with root package name */
        final /* synthetic */ String f30036b;

        a(Context context, String str) {
            this.f30035a = context;
            this.f30036b = str;
        }

        @Override // nh.d.a
        public File a() {
            File cacheDir = this.f30035a.getCacheDir();
            if (cacheDir == null) {
                return null;
            }
            return this.f30036b != null ? new File(cacheDir, this.f30036b) : cacheDir;
        }
    }

    public f(Context context) {
        this(context, "image_manager_disk_cache", 262144000L);
    }

    public f(Context context, String str, long j10) {
        super(new a(context, str), j10);
    }
}
