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

import android.view.KeyEvent;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.pluginsdk.ui.ChatFooterPanel.a;
import com.tencent.mm.sdk.platformtools.ab;
import com.tencent.ytcommon.BuildConfig;

class ChatFooter$11 implements a {
    final /* synthetic */ ChatFooter vnX;

    ChatFooter$11(ChatFooter chatFooter) {
        this.vnX = chatFooter;
    }

    public final void aYY() {
        AppMethodBeat.i(27795);
        ChatFooter.A(this.vnX);
        ChatFooter.B(this.vnX).setVisibility(0);
        ChatFooter.s(this.vnX).setVisibility(8);
        ChatFooter.a(this.vnX, true);
        ChatFooter.C(this.vnX);
        if (ChatFooter.h(this.vnX) != null) {
            ChatFooter.h(this.vnX).performClick();
        }
        AppMethodBeat.o(27795);
    }

    public final void fC(boolean z) {
        AppMethodBeat.i(27796);
        if (ChatFooter.m(this.vnX).getVisibility() == 0) {
            ChatFooter.A(this.vnX);
            ChatFooter.B(this.vnX).setVisibility(0);
            ChatFooter.s(this.vnX).setVisibility(8);
            ChatFooter.C(this.vnX);
            if (ChatFooter.a(this.vnX) != null) {
                this.vnX.setToSendTextColor(z);
            }
        }
        AppMethodBeat.o(27796);
    }

    public final void aRg() {
        AppMethodBeat.i(27797);
        ChatFooter.A(this.vnX);
        ChatFooter.B(this.vnX).setVisibility(0);
        ChatFooter.s(this.vnX).setVisibility(8);
        ChatFooter.a(this.vnX, true);
        ChatFooter.C(this.vnX);
        ChatFooter.a(this.vnX).getInputConnection().sendKeyEvent(new KeyEvent(0, 67));
        ChatFooter.a(this.vnX).getInputConnection().sendKeyEvent(new KeyEvent(1, 67));
        this.vnX.vnk.cTw--;
        AppMethodBeat.o(27797);
    }

    public final void append(String str) {
        AppMethodBeat.i(27798);
        ChatFooter.A(this.vnX);
        ChatFooter.B(this.vnX).setVisibility(0);
        ChatFooter.s(this.vnX).setVisibility(8);
        ChatFooter.a(this.vnX, true);
        ChatFooter.C(this.vnX);
        try {
            ChatFooter.a(this.vnX).asB(str);
        } catch (Exception e) {
            ab.printErrStackTrace("MicroMsg.ChatFooter", e, BuildConfig.FLAVOR, new Object[0]);
        }
        this.vnX.vnk.cTw++;
        AppMethodBeat.o(27798);
    }
}
