package com.tencent.mm.plugin.webview.ui.tools.widget.input;

import android.text.Editable;
import android.text.TextWatcher;
import com.tencent.matrix.trace.core.AppMethodBeat;

class WebViewInputFooter$5 implements TextWatcher {
    final /* synthetic */ WebViewInputFooter uKx;

    WebViewInputFooter$5(WebViewInputFooter webViewInputFooter) {
        this.uKx = webViewInputFooter;
    }

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

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

    public final void afterTextChanged(Editable editable) {
        AppMethodBeat.i(10082);
        if (WebViewInputFooter.d(this.uKx).getText() == null) {
            AppMethodBeat.o(10082);
            return;
        }
        WebViewInputFooter.d(this.uKx).requestFocus();
        boolean z = editable.length() > 0 && editable.toString().trim().length() > 0;
        WebViewInputFooter.a(this.uKx, z);
        AppMethodBeat.o(10082);
    }
}
