Fix Geolocation service to use correct signature for Location.getAltitude(). Do not merge.
This is a fix for bug http://b/issue?id=2221243
This has already been submitted to Eclair MR2 branch.
Change-Id: I964e004583cebe4c93fe3e9c1c7d5ef44a41d1f8
diff --git a/WebCore/platform/android/GeolocationServiceAndroid.cpp b/WebCore/platform/android/GeolocationServiceAndroid.cpp
index 9dcef6f..782d515 100644
--- a/WebCore/platform/android/GeolocationServiceAndroid.cpp
+++ b/WebCore/platform/android/GeolocationServiceAndroid.cpp
@@ -152,7 +152,7 @@
env->CallBooleanMethod(location, javaLocationClassMethodIDs[LOCATION_METHOD_HAS_ALTITUDE]);
double altitude =
hasAltitude ?
- env->CallFloatMethod(location, javaLocationClassMethodIDs[LOCATION_METHOD_GET_ALTITUDE]) :
+ env->CallDoubleMethod(location, javaLocationClassMethodIDs[LOCATION_METHOD_GET_ALTITUDE]) :
0.0;
// accuracy is required, but is not supplied by the emulator.
double accuracy =