package com.tencent.mm.chatroom.ui;

import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.g.a.ko;
import com.tencent.mm.pluginsdk.c.b;
import com.tencent.mm.pluginsdk.ui.applet.ContactListExpandPreference;
import com.tencent.mm.pluginsdk.ui.applet.j;
import com.tencent.mm.sdk.platformtools.ab;
import com.tencent.mm.ui.base.h;
import java.util.ArrayList;

class ChatroomInfoUI$34 extends b {
    final /* synthetic */ ChatroomInfoUI eiz;

    ChatroomInfoUI$34(ChatroomInfoUI chatroomInfoUI) {
        this.eiz = chatroomInfoUI;
    }

    public final void a(int i, int i2, String str, com.tencent.mm.sdk.b.b bVar) {
        AppMethodBeat.i(104002);
        if (bVar instanceof ko) {
            ko koVar = (ko) bVar;
            ab.i("MicroMsg.ChatroomInfoUI", "onSceneEnd: errType = " + i + " errCode = " + i2 + " errMsg = " + str);
            if (ChatroomInfoUI.x(this.eiz) != null) {
                ChatroomInfoUI.x(this.eiz).dismiss();
            }
            if (i == 0 && i2 == 0) {
                if (i == 0 && i2 == 0 && ChatroomInfoUI.m(this.eiz) != null) {
                    ArrayList N = ChatroomInfoUI.N(koVar.cGv.cGh);
                    ContactListExpandPreference m = ChatroomInfoUI.m(this.eiz);
                    if (m.vld != null) {
                        j jVar = m.vld.vkt;
                        jVar.ah(N);
                        jVar.Kh();
                    }
                    if (ChatroomInfoUI.f(this.eiz) != null) {
                        ChatroomInfoUI.f(this.eiz).notifyDataSetChanged();
                    }
                    this.eiz.setMMTitle(this.eiz.getResources().getQuantityString(2131361817, N.size(), new Object[]{Integer.valueOf(N.size())}));
                }
                ChatroomInfoUI.j(this.eiz);
            } else if (i2 == -21) {
                h.a(this.eiz, this.eiz.getString(2131302555), this.eiz.getString(2131297061), new 1(this));
                AppMethodBeat.o(104002);
                return;
            } else {
                h.b(this.eiz, this.eiz.getString(2131302557), this.eiz.getString(2131297061), true);
                AppMethodBeat.o(104002);
                return;
            }
        }
        AppMethodBeat.o(104002);
    }
}
