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

import android.view.MenuItem;
import android.view.MenuItem.OnMenuItemClickListener;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.sdk.platformtools.bo;
import com.tencent.mm.ui.base.h;
import com.tencent.ytcommon.BuildConfig;

class SnsLabelUI$8 implements OnMenuItemClickListener {
    final /* synthetic */ SnsLabelUI rtz;

    SnsLabelUI$8(SnsLabelUI snsLabelUI) {
        this.rtz = snsLabelUI;
    }

    public final boolean onMenuItemClick(MenuItem menuItem) {
        AppMethodBeat.i(39018);
        SnsLabelUI snsLabelUI = this.rtz;
        String c = bo.c(snsLabelUI.rtl.rtH, ",");
        String c2 = bo.c(snsLabelUI.rtl.rtJ, ",");
        String c3 = bo.c(snsLabelUI.rtl.rtI, ",");
        String c4 = bo.c(snsLabelUI.rtl.rtK, ",");
        if ((snsLabelUI.rtl.rtF == 2 && snsLabelUI.rtl.rtH.size() == 0 && snsLabelUI.rtl.rtJ.size() == 0) || (snsLabelUI.rtl.rtF == 3 && snsLabelUI.rtl.rtI.size() == 0 && snsLabelUI.rtl.rtK.size() == 0)) {
            h.a(snsLabelUI, snsLabelUI.getString(2131303677), BuildConfig.FLAVOR, snsLabelUI.getString(2131303686), null);
        } else if ((snsLabelUI.rtl.rtF == 2 && bo.isNullOrNil(c) && bo.isNullOrNil(c2)) || (snsLabelUI.rtl.rtF == 3 && bo.isNullOrNil(c3) && bo.isNullOrNil(c4))) {
            h.a(snsLabelUI, snsLabelUI.getString(2131303677), BuildConfig.FLAVOR, snsLabelUI.getString(2131303686), null);
        } else {
            snsLabelUI.ctv();
        }
        AppMethodBeat.o(39018);
        return true;
    }
}
