Move the CallManager registerPhone into GsmCdmaPhone
After the user enable DSDS, the CallManager doesn't register the
new phone. It causes the new phone can't notify mmi dialog.
Fix: 173704265
Test: atest GsmCdmaPhoneTest (PASS)
Manual test: enable DSDS, then call *135#. (PASS)
Change-Id: Ide13656be4612c3249f7248190af1c3919932ad5
diff --git a/src/com/android/phone/PhoneGlobals.java b/src/com/android/phone/PhoneGlobals.java
index be1872f..0971754 100644
--- a/src/com/android/phone/PhoneGlobals.java
+++ b/src/com/android/phone/PhoneGlobals.java
@@ -363,9 +363,6 @@
startService(intent);
mCM = CallManager.getInstance();
- for (Phone phone : PhoneFactory.getPhones()) {
- mCM.registerPhone(phone);
- }
// Create the NotificationMgr singleton, which is used to display
// status bar icons and control other status bar behavior.