IMS: added implementation for registrationFeatureCapabilityChanged.
Libin.Tang@motorola.com [Tue, 19 Aug 2014 19:20:01 +0000 (14:20 -0500)]
Bug: 17182366
Change-Id: I78d89dd6ed1a69a9f1d1ddde929a2a8e25751e92

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

index 42ac717..4962591 100644 (file)
@@ -52,4 +52,12 @@ public class ImsConnectionStateListener {
     public void onImsSuspended() {
         // no-op
     }
+
+    /**
+     * Called when its current IMS connection feature capability changes.
+     */
+    public void onFeatureCapabilityChanged(int serviceClass,
+                int[] enabledFeatures, int[] disabledFeatures) {
+        // no-op
+    }
 }
index 689ea05..362f6b8 100644 (file)
@@ -738,6 +738,10 @@ public class ImsManager {
                 int[] enabledFeatures, int[] disabledFeatures) {
             log("registrationFeatureCapabilityChanged :: serviceClass=" +
                     serviceClass);
+            if (mListener != null) {
+                mListener.onFeatureCapabilityChanged(serviceClass,
+                        enabledFeatures, disabledFeatures);
+            }
         }
 
     }