summaryrefslogtreecommitdiffstats
path: root/telephony
diff options
context:
space:
mode:
authorSrikanth Chintala <srikchin@codeaurora.org>2012-10-21 02:20:06 -0700
committerNarayan Kamath <narayan@google.com>2014-12-29 11:05:22 +0000
commite4ec09da0b4a31e23f1a19bdd1ea99e0f87cadac (patch)
treea8dc933c4dfc7a7bc015854ec37e5f6330678921 /telephony
parentcfa31a605cda26a556009ddd4eae83085e74339b (diff)
downloadframeworks_base-e4ec09da0b4a31e23f1a19bdd1ea99e0f87cadac.zip
frameworks_base-e4ec09da0b4a31e23f1a19bdd1ea99e0f87cadac.tar.gz
frameworks_base-e4ec09da0b4a31e23f1a19bdd1ea99e0f87cadac.tar.bz2
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
Diffstat (limited to 'telephony')
-rw-r--r--telephony/java/android/telephony/gsm/GsmCellLocation.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/telephony/java/android/telephony/gsm/GsmCellLocation.java b/telephony/java/android/telephony/gsm/GsmCellLocation.java
index 313bc82..a3889b2 100644
--- a/telephony/java/android/telephony/gsm/GsmCellLocation.java
+++ b/telephony/java/android/telephony/gsm/GsmCellLocation.java
@@ -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);
}
/**