summaryrefslogtreecommitdiff
path: root/location/java/com
diff options
context:
space:
mode:
author Shuo Qian <shuoq@google.com> 2017-04-12 21:11:58 +0000
committer android-build-merger <android-build-merger@google.com> 2017-04-12 21:11:58 +0000
commit56d3af66801edac661fbe192f4d84cd9058fe513 (patch)
tree93e1fe15c700de3b2863e2d92270c10444ccb552 /location/java/com
parent9a5d0477508ed7ff2a912a89a46959fce94e5b04 (diff)
parent36611a09588ce2c6bce480f8933ee4f69fbad84e (diff)
Merge "ECBM SystemProperty cleanup" am: 4718606368 am: 40cde7b71f
am: 36611a0958 Change-Id: Ib68a4e3b34ad4d76e4b254350b523eaa424b30f9
Diffstat (limited to 'location/java/com')
-rw-r--r--location/java/com/android/internal/location/GpsNetInitiatedHandler.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/location/java/com/android/internal/location/GpsNetInitiatedHandler.java b/location/java/com/android/internal/location/GpsNetInitiatedHandler.java
index 4c39c308ef87..6bc5e917aa32 100644
--- a/location/java/com/android/internal/location/GpsNetInitiatedHandler.java
+++ b/location/java/com/android/internal/location/GpsNetInitiatedHandler.java
@@ -242,8 +242,7 @@ public class GpsNetInitiatedHandler {
}
public boolean getInEmergency() {
- boolean isInEmergencyCallback = Boolean.parseBoolean(
- SystemProperties.get(TelephonyProperties.PROPERTY_INECM_MODE));
+ boolean isInEmergencyCallback = mTelephonyManager.getEmergencyCallbackMode();
return mIsInEmergency || isInEmergencyCallback;
}