Removed the part that deletes the ImsManger object cache when changing the subid
Manage cache in connectionReady()/connectionUnavailable()
Bug: 353577279
Test: atest ImsStateCallbackControllerTest
Flag: com.android.internal.telephony.flags.avoid_deleting_ims_object_from_cache
Change-Id: I8ce60753a2139a4934b5a5333f4b335c9919bcb7
diff --git a/src/com/android/phone/PhoneGlobals.java b/src/com/android/phone/PhoneGlobals.java
index d0d92c6..8d6dc07 100644
--- a/src/com/android/phone/PhoneGlobals.java
+++ b/src/com/android/phone/PhoneGlobals.java
@@ -638,7 +638,8 @@
if (getPackageManager().hasSystemFeature(PackageManager.FEATURE_TELEPHONY_IMS)) {
mImsStateCallbackController =
- ImsStateCallbackController.make(this, PhoneFactory.getPhones().length);
+ ImsStateCallbackController.make(this, PhoneFactory.getPhones().length,
+ mFeatureFlags);
mTelephonyRcsService = new TelephonyRcsService(this,
PhoneFactory.getPhones().length, mFeatureFlags);
mTelephonyRcsService.initialize();