diff --git a/location/android.c b/location/android.c index 906ff55f79..3b978d4024 100644 --- a/location/android.c +++ b/location/android.c @@ -76,7 +76,7 @@ static void *android_location_init(void) if (!androidlocation->onLocationGetHorizontalAccuracy) goto dealloc; - GET_METHOD_ID(env, androidlocation->onLocationGetLongitude, class, "onLocationSetInterval", "(II)V"); + GET_METHOD_ID(env, androidlocation->onLocationSetInterval, class, "onLocationSetInterval", "(II)V"); if (!androidlocation->onLocationSetInterval) goto dealloc;