package com.tencent.mm.pluginsdk.ui.chat;

import android.view.View;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemClickListener;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.plugin.report.service.h;
import com.tencent.mm.storage.emotion.EmojiInfo;
import com.tencent.ytcommon.BuildConfig;

class m$3 implements OnItemClickListener {
    final /* synthetic */ m voP;

    m$3(m mVar) {
        this.voP = mVar;
    }

    public final void onItemClick(AdapterView<?> adapterView, View view, int i, long j) {
        AppMethodBeat.i(62456);
        EmojiInfo uf = this.voP.voL == null ? null : this.voP.voL.uf(i);
        if (!(uf == null || this.voP.voG == null || this.voP.vnn == null)) {
            this.voP.voG.A(uf);
            this.voP.vnn.clear();
            String str = BuildConfig.FLAVOR;
            h.pYm.e(10994, new Object[]{Integer.valueOf(1), this.voP.voH, str, Integer.valueOf(i), uf.Aq(), Integer.valueOf(this.voP.voL.getCount())});
        }
        this.voP.voE.dismiss();
        AppMethodBeat.o(62456);
    }
}
