package com.tencent.mm.plugin.webview.ui.tools;

import android.os.Bundle;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.sdk.platformtools.ab;
import com.tencent.mm.ui.base.h.d;
import com.tencent.ytcommon.BuildConfig;

class j$7 implements d {
    final /* synthetic */ j utN;

    j$7(j jVar) {
        this.utN = jVar;
    }

    public final void bV(int i, int i2) {
        AppMethodBeat.i(7648);
        switch (i2) {
            case -1:
                Bundle bundle = new Bundle();
                bundle.putLong("fav_local_id", this.utN.cZv().getIntent().getLongExtra("fav_local_id", -1));
                try {
                    if (this.utN.cZv().icy.aa(bundle)) {
                        ab.i("MicroMsg.WebViewMenuHelper", "del fav web url ok, finish webview ui");
                        this.utN.cZv().ulI.q("mm_del_fav", Boolean.TRUE);
                        this.utN.cZv().finish();
                        AppMethodBeat.o(7648);
                        return;
                    }
                    ab.w("MicroMsg.WebViewMenuHelper", "try to del web url fail");
                    AppMethodBeat.o(7648);
                    return;
                } catch (Exception e) {
                    ab.printErrStackTrace("MicroMsg.WebViewMenuHelper", e, BuildConfig.FLAVOR, new Object[0]);
                    ab.e("MicroMsg.WebViewMenuHelper", "try to del web url crash");
                    AppMethodBeat.o(7648);
                    return;
                }
            default:
                ab.i("MicroMsg.WebViewMenuHelper", "do del cancel");
                AppMethodBeat.o(7648);
                return;
        }
    }
}
