Fix call to ImsManager#getInstance
am: b574d5f303

Change-Id: I233e7c3f981c04a5da2db593aee53cd983b5b47d
diff --git a/src/com/android/phone/settings/AccessibilitySettingsFragment.java b/src/com/android/phone/settings/AccessibilitySettingsFragment.java
index b074f20..73f5de9 100644
--- a/src/com/android/phone/settings/AccessibilitySettingsFragment.java
+++ b/src/com/android/phone/settings/AccessibilitySettingsFragment.java
@@ -166,7 +166,8 @@
             for (int subId : SubscriptionController.getInstance().getActiveSubIdList(true)) {
                 if (!configManager.getConfigForSubId(subId).getBoolean(
                         CarrierConfigManager.KEY_IGNORE_RTT_MODE_SETTING_BOOL, false)) {
-                    ImsManager imsManager = ImsManager.getInstance(getContext(), subId);
+                    int phoneId = SubscriptionController.getInstance().getPhoneId(subId);
+                    ImsManager imsManager = ImsManager.getInstance(getContext(), phoneId);
                     imsManager.setRttEnabled(mButtonRtt.isChecked());
                 }
             }