(Android) (Location) Function signatures for functions that return

double were wrong - should be D instead of J
This commit is contained in:
twinaphex 2013-12-20 00:42:42 +01:00
parent 0513b99cc2
commit 792b27288a
2 changed files with 10 additions and 2 deletions

View File

@ -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.

View File

@ -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;