Loading src/java/com/android/ims/ImsManager.java +21 −1 Original line number Diff line number Diff line Loading @@ -1574,7 +1574,6 @@ public class ImsManager { throw new NullPointerException("registration callback can't be null"); } checkAndThrowExceptionIfServiceUnavailable(); try { mMmTelFeatureConnection.addRegistrationCallback(callback); log("Registration Callback registered."); Loading @@ -1585,6 +1584,27 @@ public class ImsManager { } } /** * Removes a previously added registration callback that was added via * {@link #addRegistrationCallback(ImsRegistrationImplBase.Callback)} . * @param callback A {@link ImsRegistrationImplBase.Callback} that was previously added. * @throws ImsException when the ImsService connection is not available. */ public void removeRegistrationListener(ImsRegistrationImplBase.Callback callback) throws ImsException { if (callback == null) { throw new NullPointerException("registration callback can't be null"); } try { mMmTelFeatureConnection.removeRegistrationCallback(callback); log("Registration callback removed."); } catch (RemoteException e) { throw new ImsException("removeRegistrationCallback(IRIB)", e, ImsReasonInfo.CODE_LOCAL_IMS_SERVICE_DOWN); } } /** * Adds a callback that gets called when MMTel capability status has changed, for example when * Voice over IMS or VT over IMS is not available currently. Loading src/java/com/android/ims/MmTelFeatureConnection.java +1 −1 Original line number Diff line number Diff line Loading @@ -196,7 +196,7 @@ public class MmTelFeatureConnection { IImsRegistration imsRegistration = getRegistration(); if (imsRegistration != null) { try { getRegistration().addRegistrationCallback(mRegistrationCallbackAdapter); getRegistration().removeRegistrationCallback(mRegistrationCallbackAdapter); } catch (RemoteException e) { Log.w(TAG, "removeConnection: couldn't remove registration callback"); } Loading Loading
src/java/com/android/ims/ImsManager.java +21 −1 Original line number Diff line number Diff line Loading @@ -1574,7 +1574,6 @@ public class ImsManager { throw new NullPointerException("registration callback can't be null"); } checkAndThrowExceptionIfServiceUnavailable(); try { mMmTelFeatureConnection.addRegistrationCallback(callback); log("Registration Callback registered."); Loading @@ -1585,6 +1584,27 @@ public class ImsManager { } } /** * Removes a previously added registration callback that was added via * {@link #addRegistrationCallback(ImsRegistrationImplBase.Callback)} . * @param callback A {@link ImsRegistrationImplBase.Callback} that was previously added. * @throws ImsException when the ImsService connection is not available. */ public void removeRegistrationListener(ImsRegistrationImplBase.Callback callback) throws ImsException { if (callback == null) { throw new NullPointerException("registration callback can't be null"); } try { mMmTelFeatureConnection.removeRegistrationCallback(callback); log("Registration callback removed."); } catch (RemoteException e) { throw new ImsException("removeRegistrationCallback(IRIB)", e, ImsReasonInfo.CODE_LOCAL_IMS_SERVICE_DOWN); } } /** * Adds a callback that gets called when MMTel capability status has changed, for example when * Voice over IMS or VT over IMS is not available currently. Loading
src/java/com/android/ims/MmTelFeatureConnection.java +1 −1 Original line number Diff line number Diff line Loading @@ -196,7 +196,7 @@ public class MmTelFeatureConnection { IImsRegistration imsRegistration = getRegistration(); if (imsRegistration != null) { try { getRegistration().addRegistrationCallback(mRegistrationCallbackAdapter); getRegistration().removeRegistrationCallback(mRegistrationCallbackAdapter); } catch (RemoteException e) { Log.w(TAG, "removeConnection: couldn't remove registration callback"); } Loading