summaryrefslogtreecommitdiffstats
path: root/rcs/rcsservice
diff options
context:
space:
mode:
authorJordan Liu <jminjie@google.com>2016-10-03 11:40:56 -0700
committerJordan Liu <jminjie@google.com>2016-10-05 16:25:21 -0700
commitd5027ef920e475b3d4fce7d8313f1ca2591867b9 (patch)
tree25dcb46e1052ebad043343da4089a373e5f47357 /rcs/rcsservice
parent04ddd5c036eab3e5375b5d54ba8ba360d34bf3c9 (diff)
downloadplatform_external_ims-d5027ef920e475b3d4fce7d8313f1ca2591867b9.tar.gz
platform_external_ims-d5027ef920e475b3d4fce7d8313f1ca2591867b9.tar.bz2
platform_external_ims-d5027ef920e475b3d4fce7d8313f1ca2591867b9.zip
Update reference to carrier_volte_provisioned
Update the reference to config_carrier_volte_provisioned. With the move to carrier config this value should be retrieved using CarrierConfigManager. Bug: 29873049 Change-Id: I687518178ac64003d2ca7cfc782bdc29582511f1
Diffstat (limited to 'rcs/rcsservice')
-rw-r--r--rcs/rcsservice/src/com/android/service/ims/RcsSettingUtils.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/rcs/rcsservice/src/com/android/service/ims/RcsSettingUtils.java b/rcs/rcsservice/src/com/android/service/ims/RcsSettingUtils.java
index eb415cf..862074d 100644
--- a/rcs/rcsservice/src/com/android/service/ims/RcsSettingUtils.java
+++ b/rcs/rcsservice/src/com/android/service/ims/RcsSettingUtils.java
@@ -29,6 +29,7 @@
package com.android.service.ims;
import java.lang.String;
+import android.telephony.CarrierConfigManager;
import android.telephony.TelephonyManager;
import android.content.Context;
import com.android.ims.ImsConfig;
@@ -51,9 +52,11 @@ public class RcsSettingUtils{
public static boolean isFeatureProvisioned(Context context,
int featureId, boolean defaultValue) {
+ CarrierConfigManager configManager = (CarrierConfigManager)
+ context.getSystemService(Context.CARRIER_CONFIG_SERVICE);
// Don't need provision.
- if (!context.getResources().getBoolean(
- com.android.internal.R.bool.config_carrier_volte_provisioned)) {
+ if (configManager != null && !configManager.getConfig().getBoolean(
+ CarrierConfigManager.KEY_CARRIER_VOLTE_PROVISIONED_BOOL)) {
return true;
}