From b9fca1a768e8d5f3948b492fb962210af28d8d23 Mon Sep 17 00:00:00 2001 From: Steve Block Date: Thu, 29 Oct 2009 22:08:59 +0000 Subject: 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 --- WebCore/platform/android/GeolocationServiceAndroid.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'WebCore/platform/android') 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 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 = -- cgit v1.1