From 792b27288a0740678f27e6df08bd45da97df94af Mon Sep 17 00:00:00 2001 From: twinaphex Date: Fri, 20 Dec 2013 00:42:42 +0100 Subject: [PATCH] (Android) (Location) Function signatures for functions that return double were wrong - should be D instead of J --- .../browser/retroactivity/RetroActivityLocation.java | 8 ++++++++ location/android.c | 4 ++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/android/phoenix/src/com/retroarch/browser/retroactivity/RetroActivityLocation.java b/android/phoenix/src/com/retroarch/browser/retroactivity/RetroActivityLocation.java index c6e317c0a4..fe48c0fae9 100644 --- a/android/phoenix/src/com/retroarch/browser/retroactivity/RetroActivityLocation.java +++ b/android/phoenix/src/com/retroarch/browser/retroactivity/RetroActivityLocation.java @@ -165,6 +165,14 @@ LocationListener location_service_running = true; } + /** + * Free up location services resources. + */ + public void onLocationFree() + { + /* TODO/FIXME */ + } + /** * Executed upon stopping the location client. * Does nothing if called when the client is not started. diff --git a/location/android.c b/location/android.c index da3857d397..906ff55f79 100644 --- a/location/android.c +++ b/location/android.c @@ -64,11 +64,11 @@ static void *android_location_init(void) if (!androidlocation->onLocationStop) goto dealloc; - GET_METHOD_ID(env, androidlocation->onLocationGetLatitude, class, "onLocationGetLatitude", "()J"); + GET_METHOD_ID(env, androidlocation->onLocationGetLatitude, class, "onLocationGetLatitude", "()D"); if (!androidlocation->onLocationGetLatitude) goto dealloc; - GET_METHOD_ID(env, androidlocation->onLocationGetLongitude, class, "onLocationGetLongitude", "()J"); + GET_METHOD_ID(env, androidlocation->onLocationGetLongitude, class, "onLocationGetLongitude", "()D"); if (!androidlocation->onLocationGetLongitude) goto dealloc;