package com.tencent.mm.plugin.story.f;

import a.f.a.a;
import a.f.a.m;
import a.f.b.j;
import a.f.b.k;
import a.l;
import a.y;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.plugin.story.model.audio.AudioCacheInfo;
import com.tencent.mm.sdk.platformtools.ab;
import com.tencent.mm.ui.base.t;

@l(dWo = {1, 1, 13}, dWp = {"\u0000\u0014\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u000e\n\u0000\u0010\u0000\u001a\u00020\u00012\u0006\u0010\u0002\u001a\u00020\u00032\b\u0010\u0004\u001a\u0004\u0018\u00010\u0005H\n¢\u0006\u0002\b\u0006"}, dWq = {"<anonymous>", "", "success", "", "<anonymous parameter 1>", "", "invoke"})
final class c$c extends k implements m<Boolean, String, y> {
    final /* synthetic */ a lix;
    final /* synthetic */ c rYB;
    final /* synthetic */ AudioCacheInfo rYD;

    c$c(c cVar, AudioCacheInfo audioCacheInfo, a aVar) {
        this.rYB = cVar;
        this.rYD = audioCacheInfo;
        this.lix = aVar;
        super(2);
    }

    public final /* synthetic */ Object m(Object obj, Object obj2) {
        AppMethodBeat.i(109526);
        boolean booleanValue = ((Boolean) obj).booleanValue();
        ab.i(this.rYB.TAG, "cacheAudio callback success ".concat(String.valueOf(booleanValue)));
        if (booleanValue) {
            this.rYD.aIM = true;
            this.lix.invoke();
            c$a c_a = this.rYB.rYt;
            if (c_a != null) {
                a aVar = (a) AnonymousClass1.rYE;
                j.p(aVar, "onCancel");
                c_a.rYx = aVar;
            }
        } else {
            t.makeText(this.rYB.context, 2131303957, 0).show();
            c$a c_a2 = this.rYB.rYt;
            if (c_a2 != null) {
                c_a2.dismiss();
            }
            this.rYB.rYt = null;
        }
        y yVar = y.AUy;
        AppMethodBeat.o(109526);
        return yVar;
    }
}
