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

Commit a1c181d9 authored by Srikanth Chintala's avatar Srikanth Chintala Committed by Ricardo Cerqueira
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.

Change-Id: I08dc4031bb16293e80e5b7f51afcb8dc11747d3b
CRs-Fixed: 406479
parent c86967a2
Loading
Loading
Loading
Loading
+4 −7
Original line number Diff line number Diff line
@@ -23,17 +23,14 @@ import android.telephony.CellLocation;
 * Represents the cell location on a GSM phone.
 */
public class GsmCellLocation extends CellLocation {
    private int mLac;
    private int mCid;
    private int mPsc;
    private int mLac = -1;
    private int mCid = -1;
    private int mPsc = -1;

    /**
     * Empty constructor.  Initializes the LAC and CID to -1.
     * Empty constructor.
     */
    public GsmCellLocation() {
        mLac = -1;
        mCid = -1;
        mPsc = -1;
    }

    /**