package com.tencent.mm.plugin.account.ui;

import android.text.Editable;
import android.text.TextWatcher;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.sdk.platformtools.bo;

class RegSetInfoUI$31 implements TextWatcher {
    final /* synthetic */ RegSetInfoUI gHM;

    RegSetInfoUI$31(RegSetInfoUI regSetInfoUI) {
        this.gHM = regSetInfoUI;
    }

    public final void afterTextChanged(Editable editable) {
        AppMethodBeat.i(125537);
        if (!RegSetInfoUI.m(this.gHM).doT()) {
            RegSetInfoUI.m(this.gHM).stopTimer();
        }
        String trim = RegSetInfoUI.a(this.gHM).getText().toString().trim();
        if (bo.isNullOrNil(trim)) {
            RegSetInfoUI.r(this.gHM).setText(this.gHM.getString(2131302345));
            RegSetInfoUI.s(this.gHM);
            if (RegSetInfoUI.t(this.gHM) != null) {
                RegSetInfoUI.t(this.gHM).dismiss();
                RegSetInfoUI.u(this.gHM);
            }
            RegSetInfoUI.a(this.gHM).postDelayed(new 1(this), 50);
        }
        if (!bo.isNullOrNil(trim) && (RegSetInfoUI.c(this.gHM) || !trim.equals(RegSetInfoUI.v(this.gHM)))) {
            RegSetInfoUI.s(this.gHM);
            RegSetInfoUI.m(this.gHM).ae(500, 500);
        }
        RegSetInfoUI.a(this.gHM, trim);
        AppMethodBeat.o(125537);
    }

    public final void beforeTextChanged(CharSequence charSequence, int i, int i2, int i3) {
    }

    public final void onTextChanged(CharSequence charSequence, int i, int i2, int i3) {
    }
}
