diff options
-rwxr-xr-x | services/jni/com_android_server_location_GpsLocationProvider.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/services/jni/com_android_server_location_GpsLocationProvider.cpp b/services/jni/com_android_server_location_GpsLocationProvider.cpp index 43e8467..1d93f82 100755 --- a/services/jni/com_android_server_location_GpsLocationProvider.cpp +++ b/services/jni/com_android_server_location_GpsLocationProvider.cpp @@ -590,9 +590,7 @@ static void android_location_GpsLocationProvider_update_network_state(JNIEnv* en jboolean connected, int type, jboolean roaming, jstring extraInfo) { const AGpsRilInterface* interface = GetAGpsRilInterface(env, obj); - if (interface && - (interface->size > ((char *)&interface->update_network_state - (char *)&interface)) && - interface->update_network_state) { + if (interface && interface->update_network_state) { if (extraInfo) { const char *extraInfoStr = env->GetStringUTFChars(extraInfo, NULL); interface->update_network_state(connected, type, roaming, extraInfoStr); |