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

import android.view.KeyEvent;
import android.widget.TextView;
import android.widget.TextView.OnEditorActionListener;
import com.tencent.matrix.trace.core.AppMethodBeat;

class ChatFooter$31 implements OnEditorActionListener {
    final /* synthetic */ ChatFooter vnX;

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

    public final boolean onEditorAction(TextView textView, int i, KeyEvent keyEvent) {
        AppMethodBeat.i(27822);
        if (i == 4 || (i == 0 && ChatFooter.g(this.vnX))) {
            ChatFooter.h(this.vnX).performClick();
            AppMethodBeat.o(27822);
            return true;
        }
        AppMethodBeat.o(27822);
        return false;
    }
}
