package com.tencent.mm.plugin.record.ui.b;

import android.content.Context;
import android.view.View;
import android.view.View.OnLongClickListener;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.a.e;
import com.tencent.mm.g.a.gh;
import com.tencent.mm.plugin.fav.a.g;
import com.tencent.mm.plugin.record.ui.a.b;
import com.tencent.mm.protocal.protobuf.aar;
import com.tencent.mm.sdk.b.a;
import com.tencent.mm.sdk.platformtools.ab;
import com.tencent.mm.ui.tools.j;

class a$2 implements OnLongClickListener {
    private Context context;
    private g mgf;
    final /* synthetic */ a pKU;
    private b pKV;
    private aar pKW;
    private String path;

    a$2(a aVar) {
        this.pKU = aVar;
    }

    public final boolean onLongClick(View view) {
        AppMethodBeat.i(24339);
        if (view != null) {
            this.context = view.getContext();
            this.pKV = (b) view.getTag();
            this.mgf = this.pKV.mnW;
            this.pKW = this.pKV.cAv;
        }
        gh ghVar = new gh();
        ghVar.cAH.type = 2;
        ghVar.cAH.cAJ = this.pKV.cAv;
        a.xxA.m(ghVar);
        this.path = ghVar.cAI.path;
        if (e.ct(this.path)) {
            if (this.pKU.hPs == null) {
                this.pKU.hPs = new j(this.context);
            }
            this.pKU.hPs.rBl = new 1(this);
            this.pKU.hPs.rBm = new 2(this);
            this.pKU.hPs.cuu();
            AppMethodBeat.o(24339);
        } else {
            ab.w("MicroMsg.ImageViewWrapper", "file not exists");
            AppMethodBeat.o(24339);
        }
        return true;
    }
}
