package com.tencent.mm.plugin.choosemsgfile.b.c;

import android.support.v7.widget.RecyclerView.v;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.plugin.choosemsgfile.b.a.b;
import com.tencent.mm.plugin.choosemsgfile.b.c.g.a;
import com.tencent.mm.sdk.platformtools.ab;
import com.tencent.mm.sdk.platformtools.al;

class f$2 implements a {
    final /* synthetic */ f kvm;

    f$2(f fVar) {
        this.kvm = fVar;
    }

    public final void a(boolean z, com.tencent.mm.plugin.choosemsgfile.b.b.a aVar, v vVar) {
        AppMethodBeat.i(54363);
        if (aVar == null) {
            ab.e("MicroMsg.ChooseMsgFileUIController", "[onCheck] item is null, err");
            AppMethodBeat.o(54363);
            return;
        }
        ab.i("MicroMsg.ChooseMsgFileUIController", "[onCheck] isChecked:%b", new Object[]{Boolean.valueOf(z)});
        if (z) {
            aVar.bfq();
            f.a(this.kvm).gX(aVar.kua.field_msgId);
            b.a(aVar, new 1(this, aVar, vVar), this.kvm.bfA());
        } else {
            aVar.bfu();
            f.a(this.kvm).gY(aVar.kua.field_msgId);
            f.a(this.kvm).gV(aVar.kua.field_msgId);
            if (f.a(this.kvm).bfD()) {
                al.d(new Runnable() {
                    public final void run() {
                        AppMethodBeat.i(54362);
                        f$2.this.kvm.kvi.aop.notifyChanged();
                        AppMethodBeat.o(54362);
                    }
                });
            }
            this.kvm.kuT.bfG();
        }
        aVar.T(vVar);
        AppMethodBeat.o(54363);
    }
}
