Telephony: Initialize GsmCellLocation class members properly

Default values for class members mLac, mCid, mPsc would be 0.
Initialize these variables with -1 as 0 is considered as valid value.

CRs-Fixed: 406479
Change-Id: Idb3d1737c7101b97a90eab3dc7436ee1806d0bc4
This commit is contained in:
Srikanth Chintala
2012-10-21 02:20:06 -07:00
committed by Narayan Kamath
parent cfa31a605c
commit e4ec09da0b

View File

@@ -40,9 +40,9 @@ public class GsmCellLocation extends CellLocation {
* Initialize the object from a bundle.
*/
public GsmCellLocation(Bundle bundle) {
mLac = bundle.getInt("lac", mLac);
mCid = bundle.getInt("cid", mCid);
mPsc = bundle.getInt("psc", mPsc);
mLac = bundle.getInt("lac", -1);
mCid = bundle.getInt("cid", -1);
mPsc = bundle.getInt("psc", -1);
}
/**