what-the-bank/sources/com/scb/phone/view/custom/ccrredemption/CustomEditText.java

39 lines
1.0 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package com.scb.phone.view.custom.ccrredemption;
import android.content.Context;
import android.util.AttributeSet;
import android.view.KeyEvent;
import androidx.appcompat.widget.AppCompatEditText;
import o.eAU;
/* loaded from: classes5.dex */
public class CustomEditText extends AppCompatEditText {
private eAU e;
public CustomEditText(Context context) {
super(context);
}
public CustomEditText(Context context, AttributeSet attributeSet) {
super(context, attributeSet);
}
public CustomEditText(Context context, AttributeSet attributeSet, int i) {
super(context, attributeSet, i);
}
@Override // android.widget.TextView, android.view.View
public boolean onKeyPreIme(int i, KeyEvent keyEvent) {
eAU eau;
if ((keyEvent.getKeyCode() == 4 || keyEvent.getKeyCode() == 1) && (eau = this.e) != null) {
eau.c();
return true;
}
return super.dispatchKeyEvent(keyEvent);
}
public void setKeyboardBackPressListener(eAU eau) {
this.e = eau;
}
}