package com.tencent.mm.plugin.account.friend.ui;

import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.a.p;
import com.tencent.mm.kernel.g;
import com.tencent.mm.plugin.account.friend.a.ao;
import com.tencent.mm.plugin.account.friend.a.ap;
import com.tencent.mm.plugin.account.friend.ui.e.1;
import com.tencent.mm.pluginsdk.ui.applet.a.a;
import com.tencent.mm.sdk.platformtools.ab;

class e$1$2 implements a {
    final /* synthetic */ 1 gxK;

    e$1$2(1 1) {
        this.gxK = 1;
    }

    public final void a(boolean z, boolean z2, String str, String str2) {
        AppMethodBeat.i(108588);
        ab.i("MicroMsg.QQFriendAdapter", "cpan ok:%b hasSendVerify:%b  username:%s gitemId:%s", new Object[]{Boolean.valueOf(z), Boolean.valueOf(z2), str, str2});
        long longValue = new p(p.cB(str2)).longValue();
        ao ge = ((ap) ((com.tencent.mm.plugin.account.a.a.a) g.M(com.tencent.mm.plugin.account.a.a.a.class)).getQQListStg()).ge(longValue);
        if (ge != null && z) {
            ge.username = str;
        }
        if (ge != null) {
            ge.frT = 2;
            ab.d("MicroMsg.QQFriendAdapter", "f :%s", new Object[]{ge.toString()});
            ((ap) ((com.tencent.mm.plugin.account.a.a.a) g.M(com.tencent.mm.plugin.account.a.a.a.class)).getQQListStg()).a(longValue, ge);
            this.gxK.gxJ.KC();
        } else {
            ab.w("MicroMsg.QQFriendAdapter", "cpan qq friend is null. qq:%s", new Object[]{str2});
        }
        if (z && ge != null) {
            e.wl(str);
        }
        AppMethodBeat.o(108588);
    }
}
