diff options
author | joonhunshin <joonhunshin@google.com> | 2023-08-02 05:08:33 +0000 |
---|---|---|
committer | joonhunshin <joonhunshin@google.com> | 2023-08-02 05:08:37 +0000 |
commit | 22504ae67ac384f90b54a28ca90be0daa61ad6d6 (patch) | |
tree | 4ab48d9121aafb02b6e5ea19ded38a813d14b8b9 | |
parent | 86110605303fdd840ca254b817f33d74ea178f21 (diff) | |
download | ims-22504ae67ac384f90b54a28ca90be0daa61ad6d6.tar.gz |
Fix, DeviceCapabilityListener does not try to register IMS registration callback.
When IImsFeatureStatusCallback#notifyImsFeatureStatus() calls with unavailable and ready within short time, the PublishControllerImpl's handler calls DeviceCapabilityListener#onRcsConnected and #onRcsDisconnected consecutively.
During this time the DeviceCapabilityListener keeps EVENT_UNREGISTER_IMS_CHANGE and EVENT_REGISTER_IMS_CONTENT_CHANGE messages in Q. When the DeviceCapabilityListener handles EVENT_UNREGISTER_IMS_CHANGE message, it removes EVENT_REGISTER_IMS_CONTENT_CHANGE from Q.
By deleting EVENT_REGISTER_IMS_CONTENT_CHANGE, the DeviceCapabilityListener does not try to register the IMS registration callback.
Bug: 287833083
Test: atest DeviceCapabilityListenerTest, RcsUceAdapterTest
Test: AT&T and TMO live network
Change-Id: I5010adfb3e1ce2880cb8f816f021c44257d9c521
-rw-r--r-- | src/java/com/android/ims/rcs/uce/presence/publish/DeviceCapabilityListener.java | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/java/com/android/ims/rcs/uce/presence/publish/DeviceCapabilityListener.java b/src/java/com/android/ims/rcs/uce/presence/publish/DeviceCapabilityListener.java index b58f7ec6..bc372054 100644 --- a/src/java/com/android/ims/rcs/uce/presence/publish/DeviceCapabilityListener.java +++ b/src/java/com/android/ims/rcs/uce/presence/publish/DeviceCapabilityListener.java @@ -343,9 +343,6 @@ public class DeviceCapabilityListener { private void unregisterImsProvisionCallback() { logd("unregisterImsProvisionCallback"); - // Clear the registering IMS callback message from the handler thread - mHandler.removeRegisterImsContentChangedMessage(); - // Unregister mmtel callback if (mImsMmTelManager != null) { try { |