package com.scb.phone.view.custom.common; import android.content.Context; import android.util.AttributeSet; import android.view.KeyEvent; import android.view.inputmethod.EditorInfo; import android.view.inputmethod.InputConnection; import android.widget.EditText; import o.InterfaceC12827fIb; /* loaded from: classes5.dex */ public class CustomNoteEditText extends EditText { private InterfaceC12827fIb c; public CustomNoteEditText(Context context) { super(context); } public CustomNoteEditText(Context context, AttributeSet attributeSet) { super(context, attributeSet); } public CustomNoteEditText(Context context, AttributeSet attributeSet, int i) { super(context, attributeSet, i); } @Override // android.widget.TextView, android.view.View public InputConnection onCreateInputConnection(EditorInfo editorInfo) { InputConnection onCreateInputConnection = super.onCreateInputConnection(editorInfo); editorInfo.imeOptions &= -1073741825; return onCreateInputConnection; } @Override // android.widget.TextView, android.view.View public boolean onKeyPreIme(int i, KeyEvent keyEvent) { InterfaceC12827fIb interfaceC12827fIb; if (i == 4 && keyEvent.getAction() == 1 && (interfaceC12827fIb = this.c) != null) { interfaceC12827fIb.c(); } return super.onKeyPreIme(i, keyEvent); } @Override // android.widget.TextView public void onEditorAction(int i) { InterfaceC12827fIb interfaceC12827fIb; if (i == 6 && (interfaceC12827fIb = this.c) != null) { interfaceC12827fIb.b(); } super.onEditorAction(i); } public void setEditTextKeyboardActionListener(InterfaceC12827fIb interfaceC12827fIb) { this.c = interfaceC12827fIb; } }