Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e4ec09da authored by Srikanth Chintala's avatar Srikanth Chintala Committed by Narayan Kamath
Browse files

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
parent cfa31a60
Loading
Loading
Loading
Loading
+3 −3
Original line number Original line Diff line number Diff line
@@ -40,9 +40,9 @@ public class GsmCellLocation extends CellLocation {
     * Initialize the object from a bundle.
     * Initialize the object from a bundle.
     */
     */
    public GsmCellLocation(Bundle bundle) {
    public GsmCellLocation(Bundle bundle) {
        mLac = bundle.getInt("lac", mLac);
        mLac = bundle.getInt("lac", -1);
        mCid = bundle.getInt("cid", mCid);
        mCid = bundle.getInt("cid", -1);
        mPsc = bundle.getInt("psc", mPsc);
        mPsc = bundle.getInt("psc", -1);
    }
    }


    /**
    /**