Merge "GPS: Remove unnecessary and broken test in AgpsRilInterface updateNetworkState glue" into gingerbread
This commit is contained in:
committed by
Android (Google) Code Review
commit
c792c2e9ed
@@ -590,9 +590,7 @@ static void android_location_GpsLocationProvider_update_network_state(JNIEnv* en
|
|||||||
jboolean connected, int type, jboolean roaming, jstring extraInfo)
|
jboolean connected, int type, jboolean roaming, jstring extraInfo)
|
||||||
{
|
{
|
||||||
const AGpsRilInterface* interface = GetAGpsRilInterface(env, obj);
|
const AGpsRilInterface* interface = GetAGpsRilInterface(env, obj);
|
||||||
if (interface &&
|
if (interface && interface->update_network_state) {
|
||||||
(interface->size > ((char *)&interface->update_network_state - (char *)&interface)) &&
|
|
||||||
interface->update_network_state) {
|
|
||||||
if (extraInfo) {
|
if (extraInfo) {
|
||||||
const char *extraInfoStr = env->GetStringUTFChars(extraInfo, NULL);
|
const char *extraInfoStr = env->GetStringUTFChars(extraInfo, NULL);
|
||||||
interface->update_network_state(connected, type, roaming, extraInfoStr);
|
interface->update_network_state(connected, type, roaming, extraInfoStr);
|
||||||
|
|||||||
Reference in New Issue
Block a user