package com.tencent.mm.plugin.webview.luggage;

import android.view.MenuItem;
import android.view.MenuItem.OnMenuItemClickListener;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.compatible.util.f;
import com.tencent.mm.pluginsdk.ui.tools.u;
import com.tencent.xweb.b;
import com.tencent.ytcommon.BuildConfig;

class g$6 implements OnMenuItemClickListener {
    final /* synthetic */ String icQ;
    final /* synthetic */ g uiJ;

    g$6(g gVar, String str) {
        this.uiJ = gVar;
        this.icQ = str;
    }

    public final boolean onMenuItemClick(MenuItem menuItem) {
        AppMethodBeat.i(6128);
        String replaceAll = this.icQ.replaceAll("tp=webp", BuildConfig.FLAVOR);
        u.a(g.a(this.uiJ).mContext, replaceAll, b.dTR().getCookie(replaceAll), f.Mn(), new 1(this));
        AppMethodBeat.o(6128);
        return true;
    }
}
