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

import android.text.SpannableString;
import android.view.View;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.plugin.luckymoney.appbrand.a.g;
import com.tencent.mm.plugin.luckymoney.appbrand.a.h$a;
import com.tencent.mm.plugin.wallet_core.ui.j.a;
import com.tencent.mm.wallet_core.ui.e;

class WxaLuckyMoneyPrepareUI$14 implements a {
    final /* synthetic */ WxaLuckyMoneyPrepareUI nTo;
    final /* synthetic */ SpannableString nTt;

    WxaLuckyMoneyPrepareUI$14(WxaLuckyMoneyPrepareUI wxaLuckyMoneyPrepareUI, SpannableString spannableString) {
        this.nTo = wxaLuckyMoneyPrepareUI;
        this.nTt = spannableString;
    }

    public final void onClick(View view) {
        AppMethodBeat.i(42069);
        int input = WxaLuckyMoneyPrepareUI.c(this.nTo).getInput();
        double input2 = WxaLuckyMoneyPrepareUI.b(this.nTo).getInput();
        WxaLuckyMoneyPrepareUI.a(this.nTo, h$a.FIX_NORMAL);
        WxaLuckyMoneyPrepareUI.b(this.nTo).setType(WxaLuckyMoneyPrepareUI.e(this.nTo));
        WxaLuckyMoneyPrepareUI.b(this.nTo).setShowGroupIcon(false);
        WxaLuckyMoneyPrepareUI.b(this.nTo).setTitle(this.nTo.getString(2131301212));
        if (input2 > 0.0d && input > 0) {
            WxaLuckyMoneyPrepareUI.b(this.nTo).setAmount(e.F(input2 / ((double) input)));
        }
        WxaLuckyMoneyPrepareUI.b(this.nTo).setMaxAmount(g.nRN.nRP);
        WxaLuckyMoneyPrepareUI.g(this.nTo).setText(this.nTt);
        AppMethodBeat.o(42069);
    }
}
