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

import android.view.View;
import android.view.View.OnClickListener;
import android.view.inputmethod.InputMethodManager;
import android.widget.EditText;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.sdk.platformtools.ak;

class LuckyMoneyPrepareUI$36 implements OnClickListener {
    final /* synthetic */ boolean gnT = false;
    final /* synthetic */ EditText gnV;
    final /* synthetic */ View gnW;
    final /* synthetic */ int gnX;
    final /* synthetic */ LuckyMoneyPrepareUI ohI;

    LuckyMoneyPrepareUI$36(LuckyMoneyPrepareUI luckyMoneyPrepareUI, EditText editText, View view, int i) {
        this.ohI = luckyMoneyPrepareUI;
        this.gnV = editText;
        this.gnW = view;
        this.gnX = i;
    }

    public final void onClick(View view) {
        AppMethodBeat.i(42986);
        if (!this.ohI.nTi.isShown() || this.gnT) {
            if (!this.ohI.nTi.isShown() && !this.gnT) {
                ((InputMethodManager) this.ohI.mController.ylL.getSystemService("input_method")).hideSoftInputFromWindow(view.getWindowToken(), 0);
                new ak().postDelayed(new 1(this), 200);
                AppMethodBeat.o(42986);
                return;
            } else if (this.gnT) {
                this.ohI.nTi.setVisibility(8);
                ((InputMethodManager) this.ohI.mController.ylL.getSystemService("input_method")).showSoftInput(this.gnV, 0);
            }
        } else if (this.ohI.mKeyboard != null) {
            this.ohI.mKeyboard.setInputEditText(this.gnV);
            AppMethodBeat.o(42986);
            return;
        }
        AppMethodBeat.o(42986);
    }
}
