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

import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.LinearLayout;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.model.aw;
import com.tencent.mm.model.c;
import com.tencent.mm.plugin.talkroom.ui.TalkRoomUI.17;
import com.tencent.mm.plugin.talkroom.ui.TalkRoomUI.2;
import com.tencent.mm.sdk.platformtools.ah;
import com.tencent.mm.sdk.platformtools.bo;
import com.tencent.mm.ui.base.i;
import com.tencent.mm.ui.v;

class TalkRoomUI$12 implements OnClickListener {
    final /* synthetic */ TalkRoomUI szE;

    TalkRoomUI$12(TalkRoomUI talkRoomUI) {
        this.szE = talkRoomUI;
    }

    public final void onClick(View view) {
        int i;
        AppMethodBeat.i(25917);
        TalkRoomUI talkRoomUI = this.szE;
        aw.ZK();
        if (bo.a((Integer) c.Ry().get(144641, null), 0) > 0) {
            i = 0;
        } else {
            i iVar = new i(talkRoomUI, 2131493870);
            LinearLayout linearLayout = (LinearLayout) v.hu(ah.getContext()).inflate(2130970919, null);
            linearLayout.setMinimumWidth(10000);
            Button button = (Button) linearLayout.findViewById(2131828229);
            iVar.setCanceledOnTouchOutside(true);
            iVar.setOnDismissListener(new 17(talkRoomUI));
            iVar.setCancelable(false);
            button.setOnClickListener(new 2(talkRoomUI, iVar));
            iVar.setContentView(linearLayout);
            iVar.show();
            boolean i2 = true;
        }
        if (i2 == 0) {
            this.szE.onBackPressed();
        }
        AppMethodBeat.o(25917);
    }
}
