summaryrefslogtreecommitdiffstats
path: root/WebCore/platform/android
diff options
context:
space:
mode:
authorSteve Block <steveblock@google.com>2009-10-29 22:08:59 +0000
committerSteve Block <steveblock@google.com>2009-10-29 22:08:59 +0000
commitb9fca1a768e8d5f3948b492fb962210af28d8d23 (patch)
tree9727a40690ead1253c5dc51f569d76015147d58c /WebCore/platform/android
parent5469794fd9ad86cd03ba4cf7ef0bc82329362f39 (diff)
downloadexternal_webkit-b9fca1a768e8d5f3948b492fb962210af28d8d23.zip
external_webkit-b9fca1a768e8d5f3948b492fb962210af28d8d23.tar.gz
external_webkit-b9fca1a768e8d5f3948b492fb962210af28d8d23.tar.bz2
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
Diffstat (limited to 'WebCore/platform/android')
-rw-r--r--WebCore/platform/android/GeolocationServiceAndroid.cpp2
1 files changed, 1 insertions, 1 deletions
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 @@ PassRefPtr<Geoposition> GeolocationServiceBridge::convertLocationToGeoposition(J
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 =