summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--rcs/rcsservice/src/com/android/service/ims/RcsSettingUtils.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/rcs/rcsservice/src/com/android/service/ims/RcsSettingUtils.java b/rcs/rcsservice/src/com/android/service/ims/RcsSettingUtils.java
index 13e0f42..056e4d0 100644
--- a/rcs/rcsservice/src/com/android/service/ims/RcsSettingUtils.java
+++ b/rcs/rcsservice/src/com/android/service/ims/RcsSettingUtils.java
@@ -277,6 +277,9 @@ public class RcsSettingUtils {
}
public static boolean isVoLteSupported(int subId) {
+ if (!SubscriptionManager.isValidSubscriptionId(subId)) {
+ return false;
+ }
LinkedBlockingQueue<Boolean> resultQueue = new LinkedBlockingQueue<>(1);
try {
ImsMmTelManager mmTelManager = ImsMmTelManager.createForSubscriptionId(subId);
@@ -296,6 +299,9 @@ public class RcsSettingUtils {
}
public static boolean isVoWiFiSupported(int subId) {
+ if (!SubscriptionManager.isValidSubscriptionId(subId)) {
+ return false;
+ }
LinkedBlockingQueue<Boolean> resultQueue = new LinkedBlockingQueue<>(1);
try {
ImsMmTelManager mmTelManager = ImsMmTelManager.createForSubscriptionId(subId);
@@ -315,6 +321,9 @@ public class RcsSettingUtils {
}
public static boolean isVtSupported(int subId) {
+ if (!SubscriptionManager.isValidSubscriptionId(subId)) {
+ return false;
+ }
LinkedBlockingQueue<Boolean> resultQueue = new LinkedBlockingQueue<>(1);
try {
ImsMmTelManager mmTelManager = ImsMmTelManager.createForSubscriptionId(subId);