113 lines
3.5 KiB
Java
113 lines
3.5 KiB
Java
package o;
|
|
|
|
import android.text.method.PasswordTransformationMethod;
|
|
import android.view.View;
|
|
import android.widget.EditText;
|
|
import com.google.android.material.textfield.EndCompoundLayout;
|
|
import o.C17052tZT;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public final class cLR extends SQv {
|
|
private final View.OnClickListener b;
|
|
private int d;
|
|
EditText e;
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
@Override // o.SQv
|
|
public final boolean k() {
|
|
return true;
|
|
}
|
|
|
|
public cLR(EndCompoundLayout endCompoundLayout, int i) {
|
|
super(endCompoundLayout);
|
|
this.d = C17052tZT.LWm.design_password_eye;
|
|
this.b = new View.OnClickListener(this) { // from class: o.uFf
|
|
private cLR c;
|
|
|
|
@Override // android.view.View.OnClickListener
|
|
public final void onClick(View view) {
|
|
cLR clr = this.c;
|
|
EditText editText = clr.e;
|
|
if (editText != null) {
|
|
int selectionEnd = editText.getSelectionEnd();
|
|
EditText editText2 = clr.e;
|
|
if (editText2 != null && (editText2.getTransformationMethod() instanceof PasswordTransformationMethod)) {
|
|
clr.e.setTransformationMethod(null);
|
|
} else {
|
|
clr.e.setTransformationMethod(PasswordTransformationMethod.getInstance());
|
|
}
|
|
if (selectionEnd >= 0) {
|
|
clr.e.setSelection(selectionEnd);
|
|
}
|
|
clr.i.a(false);
|
|
}
|
|
}
|
|
|
|
{
|
|
this.c = this;
|
|
}
|
|
};
|
|
if (i != 0) {
|
|
this.d = i;
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
@Override // o.SQv
|
|
public final void f() {
|
|
EditText editText = this.e;
|
|
if (editText != null) {
|
|
editText.setTransformationMethod(PasswordTransformationMethod.getInstance());
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
@Override // o.SQv
|
|
public final int a() {
|
|
return C17052tZT.ojQ.password_toggle_content_description;
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
@Override // o.SQv
|
|
public final boolean m() {
|
|
EditText editText = this.e;
|
|
return !(editText != null && (editText.getTransformationMethod() instanceof PasswordTransformationMethod));
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
@Override // o.SQv
|
|
public final void Mz_(EditText editText) {
|
|
this.e = editText;
|
|
p();
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
@Override // o.SQv
|
|
public final void q() {
|
|
p();
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
@Override // o.SQv
|
|
public final void g() {
|
|
EditText editText = this.e;
|
|
if (editText != null) {
|
|
if (editText.getInputType() == 16 || editText.getInputType() == 128 || editText.getInputType() == 144 || editText.getInputType() == 224) {
|
|
this.e.setTransformationMethod(PasswordTransformationMethod.getInstance());
|
|
}
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
@Override // o.SQv
|
|
public final View.OnClickListener My_() {
|
|
return this.b;
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
@Override // o.SQv
|
|
public final int c() {
|
|
return this.d;
|
|
}
|
|
}
|