package o;

import android.widget.EditText;
import com.google.android.material.textfield.TextInputLayout;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.aw, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C0766aw {
    public final /* synthetic */ C0957cw a;

    public C0766aw(C0957cw c0957cw) {
        this.a = c0957cw;
    }

    public final void a(TextInputLayout textInputLayout) {
        C0957cw c0957cw = this.a;
        C0670Zv c0670Zv = c0957cw.G;
        if (c0957cw.D == textInputLayout.getEditText()) {
            return;
        }
        EditText editText = c0957cw.D;
        if (editText != null) {
            editText.removeTextChangedListener(c0670Zv);
            if (c0957cw.D.getOnFocusChangeListener() == c0957cw.b().e()) {
                c0957cw.D.setOnFocusChangeListener(null);
            }
        }
        EditText editText2 = textInputLayout.getEditText();
        c0957cw.D = editText2;
        if (editText2 != null) {
            editText2.addTextChangedListener(c0670Zv);
        }
        c0957cw.b().l(c0957cw.D);
        c0957cw.j(c0957cw.b());
    }
}
