summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattia D'Alleva <antaresone@antaresone.eu>2015-10-31 15:56:37 (GMT)
committersbrissen <sbrissen@hotmail.com>2015-11-18 16:32:52 (GMT)
commit97fda16e688c037a8b5b7e76079b7d2aadc56b96 (patch)
tree08b7163f91c4b79988300fc8661ae5b584e66c08
parent9c3aebc71d346e176bf259130ffc0c0b6eb1ae3d (diff)
downloaddevice_samsung_smdk4412-qcom-common-97fda16e688c037a8b5b7e76079b7d2aadc56b96.zip
device_samsung_smdk4412-qcom-common-97fda16e688c037a8b5b7e76079b7d2aadc56b96.tar.gz
device_samsung_smdk4412-qcom-common-97fda16e688c037a8b5b7e76079b7d2aadc56b96.tar.bz2
RIL: update emergency dial
Change-Id: Ie9ef0e981af2766fa55b4a16ad798acbebe4d84a
-rw-r--r--ril/telephony/java/com/android/internal/telephony/smdk4x12QComRIL.java7
1 files changed, 3 insertions, 4 deletions
diff --git a/ril/telephony/java/com/android/internal/telephony/smdk4x12QComRIL.java b/ril/telephony/java/com/android/internal/telephony/smdk4x12QComRIL.java
index f233f15..8cde777 100644
--- a/ril/telephony/java/com/android/internal/telephony/smdk4x12QComRIL.java
+++ b/ril/telephony/java/com/android/internal/telephony/smdk4x12QComRIL.java
@@ -64,8 +64,8 @@ public class smdk4x12QComRIL extends RIL implements CommandsInterface {
private Object mSMSLock = new Object();
private boolean mIsSendingSMS = false;
protected boolean isGSM = false;
+ private static final int RIL_REQUEST_DIAL_EMERGENCY = 10001;
public static final long SEND_SMS_TIMEOUT_IN_MS = 30000;
- private boolean samsungEmergency = needsOldRilFeature("samsungEMSReq");
public smdk4x12QComRIL(Context context, int networkModes, int cdmaSubscription) {
this(context, networkModes, cdmaSubscription, null);
@@ -542,7 +542,7 @@ public class smdk4x12QComRIL extends RIL implements CommandsInterface {
@Override
public void
dial(String address, int clirMode, UUSInfo uusInfo, Message result) {
- if (samsungEmergency && PhoneNumberUtils.isEmergencyNumber(address)) {
+ if (PhoneNumberUtils.isEmergencyNumber(address)) {
dialEmergencyCall(address, clirMode, result);
return;
}
@@ -614,8 +614,7 @@ public class smdk4x12QComRIL extends RIL implements CommandsInterface {
}
}
- static final int RIL_REQUEST_DIAL_EMERGENCY = 10016;
- private void
+ private void
dialEmergencyCall(String address, int clirMode, Message result) {
RILRequest rr;
Rlog.v(RILJ_LOG_TAG, "Emergency dial: " + address);