package com.tencent.mm.plugin.appbrand.game.widget.input;

import android.text.InputFilter;
import android.text.Spannable;
import android.text.SpannableStringBuilder;
import android.text.Spanned;
import com.tencent.matrix.trace.core.AppMethodBeat;

class WAGamePanelInputEditText$2 implements InputFilter {
    final /* synthetic */ WAGamePanelInputEditText huB;

    WAGamePanelInputEditText$2(WAGamePanelInputEditText wAGamePanelInputEditText) {
        this.huB = wAGamePanelInputEditText;
    }

    public final CharSequence filter(CharSequence charSequence, int i, int i2, Spanned spanned, int i3, int i4) {
        Spannable spannable;
        AppMethodBeat.i(130356);
        CharSequence subSequence = charSequence.subSequence(i, i2);
        if (subSequence instanceof Spannable) {
            spannable = (Spannable) subSequence;
        } else {
            Object spannable2 = new SpannableStringBuilder(subSequence);
        }
        spannable2 = WAGamePanelInputEditText.a(this.huB, spannable2);
        AppMethodBeat.o(130356);
        return spannable2;
    }
}
