Create an ImsEnablementTraker class to handle the enable, disable, reset Ims commands.
Create an ImsEnablementTraker class to handle the enable, disable, reset Ims commands.
Input commands are processed by asyncronus with a certain time gap.
Bug: b/232846588
Test: atest ImsEnablementTrackerTest
Change-Id: I5e6acfee629261af4c4a9f2be14f388fbe7d0062
diff --git a/src/com/android/phone/PhoneInterfaceManager.java b/src/com/android/phone/PhoneInterfaceManager.java
index f1f0a68..83eafd5 100755
--- a/src/com/android/phone/PhoneInterfaceManager.java
+++ b/src/com/android/phone/PhoneInterfaceManager.java
@@ -5675,8 +5675,7 @@
// may happen if the does not support IMS.
return;
}
- mImsResolver.disableIms(slotIndex);
- mImsResolver.enableIms(slotIndex);
+ mImsResolver.resetIms(slotIndex);
} finally {
Binder.restoreCallingIdentity(identity);
}