Bug 739488 - Fennec Native nightly crashes in mozilla::AndroidBridge::EnableLocationHighAccuracy when page requests GPS location. r=dougt

This commit is contained in:
Josh Dhaliwal 2012-04-02 11:52:41 -07:00
parent b243806ab7
commit 2ac46e111f
2 changed files with 5 additions and 0 deletions

View File

@ -686,6 +686,10 @@ public class GeckoAppShell
});
}
public static void enableLocationHighAccuracy(final boolean enable) {
// unsupported
}
/*
* Keep these values consistent with |SensorType| in Hal.h
*/

View File

@ -117,6 +117,7 @@ AndroidBridge::Init(JNIEnv *jEnv,
jAcknowledgeEventSync = (jmethodID) jEnv->GetStaticMethodID(jGeckoAppShellClass, "acknowledgeEventSync", "()V");
jEnableLocation = (jmethodID) jEnv->GetStaticMethodID(jGeckoAppShellClass, "enableLocation", "(Z)V");
jEnableLocationHighAccuracy = (jmethodID) jEnv->GetStaticMethodID(jGeckoAppShellClass, "enableLocationHighAccuracy", "(Z)V");
jEnableSensor = (jmethodID) jEnv->GetStaticMethodID(jGeckoAppShellClass, "enableSensor", "(I)V");
jDisableSensor = (jmethodID) jEnv->GetStaticMethodID(jGeckoAppShellClass, "disableSensor", "(I)V");
jReturnIMEQueryResult = (jmethodID) jEnv->GetStaticMethodID(jGeckoAppShellClass, "returnIMEQueryResult", "(Ljava/lang/String;II)V");