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

import android.os.Bundle;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.modelgeo.b.b;
import com.tencent.mm.modelgeo.d;
import com.tencent.mm.plugin.webview.stub.WebViewStubTempUI;
import com.tencent.mm.sdk.platformtools.ab;
import java.util.HashMap;

class g$69 implements b {
    final /* synthetic */ String uHO;
    final /* synthetic */ g uHd;

    g$69(g gVar, String str) {
        this.uHd = gVar;
        this.uHO = str;
    }

    public final boolean a(boolean z, float f, float f2, int i, double d, double d2, double d3) {
        return false;
    }

    public final boolean a(boolean z, float f, float f2, int i, double d, double d2, Bundle bundle) {
        AppMethodBeat.i(9131);
        if (z) {
            ab.v("MicroMsg.MsgHandler", "doGeoLocation.onGetLocation, fLongitude:%f, fLatitude:%f, locType:%d, speed:%f, accuracy:%f", new Object[]{Float.valueOf(f), Float.valueOf(f2), Integer.valueOf(i), Double.valueOf(d), Double.valueOf(d2)});
            if (g.B(this.uHd) != null) {
                g.B(this.uHd).c(g.C(this.uHd));
            }
            if (g.C(this.uHd) == null) {
                ab.w("MicroMsg.MsgHandler", "already callback");
                AppMethodBeat.o(9131);
                return false;
            }
            g.D(this.uHd);
            HashMap hashMap = new HashMap();
            hashMap.put("longitude", Float.valueOf(f));
            g.b(this.uHd, String.valueOf(f));
            hashMap.put("latitude", Float.valueOf(f2));
            g.c(this.uHd, String.valueOf(f2));
            hashMap.put("speed", Double.valueOf(d));
            hashMap.put("accuracy", Double.valueOf(d2));
            hashMap.put("type", this.uHO);
            if (bundle != null) {
                hashMap.put("indoor_building_id", bundle.getString("indoor_building_id"));
                hashMap.put("indoor_building_floor", bundle.getString("indoor_building_floor"));
                hashMap.put("indoor_building_type", Integer.valueOf(bundle.getInt("indoor_building_type")));
            }
            g.a(this.uHd, g.j(this.uHd), "geo_location:ok", hashMap);
            AppMethodBeat.o(9131);
            return false;
        }
        if (!(g.z(this.uHd) || d.agA())) {
            g.A(this.uHd);
            if (g.i(this.uHd) != null) {
                WebViewStubTempUI.c(g.i(this.uHd), g.i(this.uHd).getString(2131300421), g.i(this.uHd).getString(2131297061), g.i(this.uHd).getString(2131300878), g.i(this.uHd).getString(2131296868), new 1(this), new 2(this));
            }
        }
        AppMethodBeat.o(9131);
        return true;
    }
}
