summaryrefslogtreecommitdiffstats
path: root/telephony/java/android/telephony/gsm
diff options
context:
space:
mode:
authorJohn Wang <johnwang@google.com>2010-03-09 15:48:58 -0800
committerJohn Wang <johnwang@google.com>2010-03-11 13:53:46 -0800
commit41a46718b3deec95661e149b3acea2a9e54016be (patch)
treefe1771c002b9a0a197b76b7f447ad4da1cfaf368 /telephony/java/android/telephony/gsm
parent3eda9799a162765dd49f481cc303fc5702a9c5fe (diff)
downloadframeworks_base-41a46718b3deec95661e149b3acea2a9e54016be.zip
frameworks_base-41a46718b3deec95661e149b3acea2a9e54016be.tar.gz
frameworks_base-41a46718b3deec95661e149b3acea2a9e54016be.tar.bz2
Make getCellLocation return null if not available.
For bug 2422284. Check the cell location and return null if the location is not available. Change-Id: Ie9a331b906a8253c9a9596365af8705dc03823ce
Diffstat (limited to 'telephony/java/android/telephony/gsm')
-rw-r--r--telephony/java/android/telephony/gsm/GsmCellLocation.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/telephony/java/android/telephony/gsm/GsmCellLocation.java b/telephony/java/android/telephony/gsm/GsmCellLocation.java
index 0d4e0be..fa1f985 100644
--- a/telephony/java/android/telephony/gsm/GsmCellLocation.java
+++ b/telephony/java/android/telephony/gsm/GsmCellLocation.java
@@ -119,4 +119,11 @@ public class GsmCellLocation extends CellLocation {
m.putInt("lac", mLac);
m.putInt("cid", mCid);
}
+
+ /**
+ * @hide
+ */
+ public boolean isEmpty() {
+ return (mLac == -1 && mCid == -1);
+ }
}