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

import android.content.DialogInterface;
import android.content.DialogInterface.OnClickListener;
import android.view.MenuItem;
import android.view.MenuItem.OnMenuItemClickListener;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.ui.base.h;

class LaunchAAByPersonAmountSelectUI$2 implements OnMenuItemClickListener {
    final /* synthetic */ LaunchAAByPersonAmountSelectUI gou;

    LaunchAAByPersonAmountSelectUI$2(LaunchAAByPersonAmountSelectUI launchAAByPersonAmountSelectUI) {
        this.gou = launchAAByPersonAmountSelectUI;
    }

    public final boolean onMenuItemClick(MenuItem menuItem) {
        AppMethodBeat.i(40789);
        if (LaunchAAByPersonAmountSelectUI.c(this.gou) == null || LaunchAAByPersonAmountSelectUI.c(this.gou).size() <= 0) {
            this.gou.finish();
        } else {
            h.a(this.gou, this.gou.getString(2131296374), null, this.gou.getString(2131296378), this.gou.getString(2131296377), false, new 1(this), new OnClickListener() {
                public final void onClick(DialogInterface dialogInterface, int i) {
                    AppMethodBeat.i(40788);
                    LaunchAAByPersonAmountSelectUI$2.this.gou.finish();
                    AppMethodBeat.o(40788);
                }
            });
        }
        AppMethodBeat.o(40789);
        return true;
    }
}
