aboutsummaryrefslogtreecommitdiff
path: root/src/java
diff options
context:
space:
mode:
authorjoonhunshin <joonhunshin@google.com>2023-08-02 05:08:33 +0000
committerJoonhun Shin <joonhunshin@google.com>2023-08-09 00:43:35 +0000
commit11e54eaa25705b24d1dc0393b34b381dddac3c6f (patch)
tree8a89b2343fa43a945a4bfcb4be224b93bb43ef9f /src/java
parente8a7e5f9917151aed51659e62c13e5676152cd8f (diff)
downloadims-11e54eaa25705b24d1dc0393b34b381dddac3c6f.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 Merged-In: I5010adfb3e1ce2880cb8f816f021c44257d9c521 Change-Id: I5010adfb3e1ce2880cb8f816f021c44257d9c521
Diffstat (limited to 'src/java')
-rw-r--r--src/java/com/android/ims/rcs/uce/presence/publish/DeviceCapabilityListener.java3
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 b824aa08..91904a66 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 {