package com.tencent.mm.plugin.brandservice.ui;

import android.view.View;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemLongClickListener;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.plugin.brandservice.ui.EnterpriseBizContactListView.a;
import com.tencent.mm.plugin.brandservice.ui.EnterpriseBizContactListView.a.1;
import com.tencent.mm.plugin.brandservice.ui.EnterpriseBizContactListView.a.2;
import com.tencent.mm.plugin.brandservice.ui.EnterpriseBizContactListView.c;
import com.tencent.mm.sdk.platformtools.bo;
import com.tencent.mm.ui.widget.f;

class EnterpriseBizContactListView$2 implements OnItemLongClickListener {
    final /* synthetic */ EnterpriseBizContactListView jLZ;

    EnterpriseBizContactListView$2(EnterpriseBizContactListView enterpriseBizContactListView) {
        this.jLZ = enterpriseBizContactListView;
    }

    public final boolean onItemLongClick(AdapterView<?> adapterView, View view, int i, long j) {
        AppMethodBeat.i(13956);
        if (EnterpriseBizContactListView.a(this.jLZ) == null) {
            EnterpriseBizContactListView.a(this.jLZ, new a(this.jLZ));
        }
        a a = EnterpriseBizContactListView.a(this.jLZ);
        int b = EnterpriseBizContactListView.b(this.jLZ);
        int c = EnterpriseBizContactListView.c(this.jLZ);
        if (a.jMb == null) {
            EnterpriseBizContactListView enterpriseBizContactListView = (EnterpriseBizContactListView) a.jMc.get();
            if (enterpriseBizContactListView == null) {
                AppMethodBeat.o(13956);
                return false;
            }
            a.jMb = new f(enterpriseBizContactListView.getContext());
        }
        Object tag = view.getTag();
        if (tag == null || !(tag instanceof c)) {
            AppMethodBeat.o(13956);
            return false;
        }
        a.jMa = ((c) tag).username;
        if (bo.isNullOrNil(a.jMa) || com.tencent.mm.aj.f.kq(a.jMa)) {
            AppMethodBeat.o(13956);
            return false;
        }
        a.jMb.zRY = view;
        a.jMb.a(adapterView, i, j, new 1(a, i), new 2(a), b, c);
        AppMethodBeat.o(13956);
        return true;
    }
}
