Hook In VT Provisioned Status Update
Nathan Harold [Thu, 30 Jun 2016 23:12:14 +0000 (16:12 -0700)]
Bug: 29919309
Change-Id: Id843a72974c81d319434c279f7e330498771264e

src/java/com/android/ims/ImsManager.java

index ecc05e8..cceb578 100644 (file)
@@ -602,7 +602,11 @@ public class ImsManager {
                 if (DBG) Rlog.d(TAG,"mIsWfcProvisioned = " + mgr.mIsWfcProvisioned);
                 break;
 
-            // TODO: Update mIsVtProvisioned when VT provisioning become available
+            case ImsConfig.ConfigConstants.LVC_SETTING_ENABLED:
+                mgr.mIsVtProvisioned = value.equals("1");
+                if (DBG) Rlog.d(TAG,"mIsVtProvisioned = " + mgr.mIsVtProvisioned);
+                break;
+
         }
     }
 
@@ -625,7 +629,10 @@ public class ImsManager {
                             ImsConfig.ConfigConstants.VOICE_OVER_WIFI_SETTING_ENABLED);
                     if (DBG) Rlog.d(TAG, "mIsWfcProvisioned = " + mIsWfcProvisioned);
 
-                    // TODO: Update mIsVtProvisioned when VT provisioning become available
+                    mIsVtProvisioned = getProvisionedBool(config,
+                            ImsConfig.ConfigConstants.LVC_SETTING_ENABLED);
+                    if (DBG) Rlog.d(TAG, "mIsVtProvisioned = " + mIsVtProvisioned);
+
                 }
             } catch (ImsException ie) {
                 Rlog.e(TAG, "AsyncUpdateProvisionedValues error: " + ie);