package com.tencent.mm.plugin.wallet.balance.ui;

import android.view.MenuItem;
import android.view.MenuItem.OnMenuItemClickListener;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.plugin.wallet_core.model.b;
import com.tencent.mm.plugin.wallet_core.model.b$c;
import com.tencent.mm.sdk.platformtools.bo;
import com.tencent.mm.ui.base.l;
import com.tencent.mm.ui.base.n.c;
import com.tencent.mm.ui.widget.a.d;

class WalletBalanceFetchUI$26 implements OnMenuItemClickListener {
    final /* synthetic */ WalletBalanceFetchUI the;
    final /* synthetic */ b thp;

    WalletBalanceFetchUI$26(WalletBalanceFetchUI walletBalanceFetchUI, b bVar) {
        this.the = walletBalanceFetchUI;
        this.thp = bVar;
    }

    public final boolean onMenuItemClick(MenuItem menuItem) {
        AppMethodBeat.i(45385);
        d dVar = new d(this.the.mController.ylL, 1, false);
        dVar.rBl = new c() {
            public final void a(l lVar) {
                AppMethodBeat.i(45383);
                b$c[] b_cArr = WalletBalanceFetchUI$26.this.thp.twB.twD;
                int length = b_cArr.length;
                int i = 0;
                int i2 = 0;
                while (i < length) {
                    b$c b_c = b_cArr[i];
                    if (!bo.isNullOrNil(b_c.title)) {
                        if (bo.isNullOrNil(b_c.desc)) {
                            lVar.e(i2, b_c.title);
                        } else {
                            lVar.a(i2, b_c.title, b_c.desc);
                        }
                    }
                    i++;
                    i2++;
                }
                AppMethodBeat.o(45383);
            }
        };
        dVar.rBm = new 2(this);
        dVar.cpD();
        AppMethodBeat.o(45385);
        return true;
    }
}
