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

import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.ai.f;
import com.tencent.mm.ai.m;
import com.tencent.mm.kernel.g;
import com.tencent.mm.plugin.webview.model.ae;
import com.tencent.mm.protocal.protobuf.cmr;
import com.tencent.mm.sdk.platformtools.ab;
import java.util.LinkedList;

class g$53 implements f {
    final /* synthetic */ ae uHM;
    final /* synthetic */ i uHN;
    final /* synthetic */ g uHd;

    g$53(g gVar, ae aeVar, i iVar) {
        this.uHd = gVar;
        this.uHM = aeVar;
        this.uHN = iVar;
    }

    public final void onSceneEnd(int i, int i2, String str, m mVar) {
        AppMethodBeat.i(9113);
        if (i == 0 && i2 == 0) {
            cmr cmr = (cmr) this.uHM.fAT.fsH.fsP;
            if (cmr.luT == 0) {
                LinkedList<String> linkedList = cmr.xks;
                if (linkedList == null || linkedList.isEmpty()) {
                    g.a(this.uHd, this.uHN, "startMonitoringBeacons:no uuids", null);
                } else {
                    for (String a : linkedList) {
                        g.a(this.uHd, a);
                    }
                }
            } else {
                g.a(this.uHd, this.uHN, "startMonitoringBeacons:system error", null);
                ab.i("MicroMsg.MsgHandler", "verify beacon js permission err:%s", new Object[]{cmr.luU});
            }
            g.Rg().b(1702, this);
        }
        AppMethodBeat.o(9113);
    }
}
