Merge "telephony: Fix CID when CID is unknown"

This commit is contained in:
Jean-Baptiste Queru
2010-05-05 13:15:24 -07:00
committed by Android Code Review

View File

@@ -133,8 +133,11 @@ public class NeighboringCellInfo implements Parcelable
case NETWORK_TYPE_GPRS:
case NETWORK_TYPE_EDGE:
mNetworkType = radioType;
mLac = Integer.valueOf(location.substring(0, 4), 16);
mCid = Integer.valueOf(location.substring(4), 16);
// check if 0xFFFFFFFF for UNKNOWN_CID
if (!location.equalsIgnoreCase("FFFFFFFF")) {
mCid = Integer.valueOf(location.substring(4), 16);
mLac = Integer.valueOf(location.substring(0, 4), 16);
}
break;
case NETWORK_TYPE_UMTS:
case NETWORK_TYPE_HSDPA:
@@ -293,4 +296,4 @@ public class NeighboringCellInfo implements Parcelable
return new NeighboringCellInfo[size];
}
};
}
}