Add registrationAssociatedUriChanged to ImsRegistrationListener
Pavel Zhamaitsiak [Fri, 12 Feb 2016 01:21:05 +0000 (17:21 -0800)]
Update ImsManager to reflect changes in AIDL

Bug: 24613146
Change-Id: I91847b7051af49dfb8cec726daea18957a9acea1

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

index 1afec8e..1158375 100644 (file)
@@ -16,6 +16,8 @@
 
 package com.android.ims;
 
+import android.net.Uri;
+
 /**
  * Listener for receiving notifications about changes to the IMS connection.
  * It provides a state of IMS registration between UE and IMS network, the service
@@ -74,4 +76,11 @@ public class ImsConnectionStateListener {
     public void onVoiceMessageCountChanged(int count) {
         // no-op
     }
+
+    /**
+     * Called after IMS registration.
+     */
+    public void registrationAssociatedUriChanged(Uri[] uris) {
+        // no-op
+    }
 }
index 5c49450..8fc6206 100644 (file)
@@ -21,6 +21,7 @@ import android.app.QueuedWork;
 import android.content.Context;
 import android.content.Intent;
 import android.content.SharedPreferences;
+import android.net.Uri;
 import android.os.IBinder;
 import android.os.Message;
 import android.os.PersistableBundle;
@@ -1310,6 +1311,14 @@ public class ImsManager {
             }
         }
 
+        @Override
+        public void registrationAssociatedUriChanged(Uri[] uris) {
+            if (DBG) log("registrationAssociatedUriChanged ::");
+
+            if (mListener != null) {
+                mListener.registrationAssociatedUriChanged(uris);
+            }
+        }
     }
     /**
      * Gets the ECBM interface to request ECBM exit.