package d.f.a.q2.e;

import android.util.Log;
import com.ifpdos.debugmenu.R;
import com.ifpdos.debugmenu.upgrades.listener.IUpgradeListener;
import g.a0;
import g.h0.b.l;
import g.h0.c.m;

/* JADX INFO: compiled from: BaseUpgradeUpsTask.kt */
/* JADX INFO: loaded from: classes.dex */
@g.i
public final class c extends m implements l<Throwable, a0> {

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

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public final /* synthetic */ IUpgradeListener f3118e;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public c(f fVar, IUpgradeListener iUpgradeListener) {
        super(1);
        this.f3117b = fVar;
        this.f3118e = iUpgradeListener;
    }

    @Override // g.h0.b.l
    public a0 invoke(Throwable th) {
        Throwable th2 = th;
        g.h0.c.l.f(th2, "it");
        Log.e(this.f3117b.a, "onUpgrade: ", th2);
        if (th2 instanceof d.f.a.q2.a.a) {
            this.f3118e.onFail(c.n.a.v(R.string.str_upgrade_file_not_exist));
        } else {
            this.f3118e.onFail(c.n.a.v(R.string.upgrade_fail));
        }
        return a0.a;
    }
}
