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.mm.sdk.platformtools.ab;
import com.tencent.xweb.b;

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

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

    public final boolean onMenuItemClick(MenuItem menuItem) {
        AppMethodBeat.i(6126);
        try {
            u.a(g.a(this.uiJ).mContext, this.icQ, b.dTR().getCookie(this.icQ), f.Mn());
        } catch (Exception e) {
            ab.e("MicroMsg.GameWebViewMenuListHelper", "save to sdcard failed : %s", new Object[]{e.getMessage()});
        }
        AppMethodBeat.o(6126);
        return true;
    }
}
