package l;

import androidx.annotation.Nullable;
import androidx.appcompat.widget.SwitchCompat;
import java.lang.ref.WeakReference;

/* JADX INFO: loaded from: classes.dex */
public final class k3 extends androidx.emoji2.text.o {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final WeakReference f29748a;

    public k3(SwitchCompat switchCompat) {
        this.f29748a = new WeakReference(switchCompat);
    }

    @Override // androidx.emoji2.text.o
    public final void a() {
        SwitchCompat switchCompat = (SwitchCompat) this.f29748a.get();
        if (switchCompat != null) {
            switchCompat.c();
        }
    }

    @Override // androidx.emoji2.text.o
    public void onFailed(@Nullable Throwable th) {
        SwitchCompat switchCompat = (SwitchCompat) this.f29748a.get();
        if (switchCompat != null) {
            switchCompat.c();
        }
    }
}
