package androidx.core.provider;

import android.graphics.Typeface;
import android.os.Handler;
import androidx.core.provider.f;
import androidx.core.provider.g;

/* JADX INFO: compiled from: CallbackWithHandler.java */
/* JADX INFO: loaded from: classes.dex */
class a {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    private final g.c f1745a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    private final Handler f1746b;

    /* JADX INFO: renamed from: androidx.core.provider.a$a, reason: collision with other inner class name */
    /* JADX INFO: compiled from: CallbackWithHandler.java */
    class RunnableC0014a implements Runnable {

        /* JADX INFO: renamed from: e, reason: collision with root package name */
        final /* synthetic */ g.c f1747e;

        /* JADX INFO: renamed from: f, reason: collision with root package name */
        final /* synthetic */ Typeface f1748f;

        RunnableC0014a(a aVar, g.c cVar, Typeface typeface) {
            this.f1747e = cVar;
            this.f1748f = typeface;
        }

        @Override // java.lang.Runnable
        public void run() {
            this.f1747e.b(this.f1748f);
        }
    }

    /* JADX INFO: compiled from: CallbackWithHandler.java */
    class b implements Runnable {

        /* JADX INFO: renamed from: e, reason: collision with root package name */
        final /* synthetic */ g.c f1749e;

        /* JADX INFO: renamed from: f, reason: collision with root package name */
        final /* synthetic */ int f1750f;

        b(a aVar, g.c cVar, int i3) {
            this.f1749e = cVar;
            this.f1750f = i3;
        }

        @Override // java.lang.Runnable
        public void run() {
            this.f1749e.a(this.f1750f);
        }
    }

    a(g.c cVar, Handler handler) {
        this.f1745a = cVar;
        this.f1746b = handler;
    }

    private void a(int i3) {
        this.f1746b.post(new b(this, this.f1745a, i3));
    }

    private void c(Typeface typeface) {
        this.f1746b.post(new RunnableC0014a(this, this.f1745a, typeface));
    }

    void b(f.e eVar) {
        if (eVar.a()) {
            c(eVar.f1773a);
        } else {
            a(eVar.f1774b);
        }
    }
}
