Skip to content

Commit 6a0f525

Browse files
cco3android code review
authored andcommitted
Revert "Telephony: Register/Unregister Phones with CallManager"
This reverts commit cbca385
1 parent cbca385 commit 6a0f525

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

telephony/java/com/android/internal/telephony/PhoneProxy.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
import com.android.internal.telephony.gsm.NetworkInfo;
3737
import com.android.internal.telephony.gsm.GsmDataConnection;
3838
import com.android.internal.telephony.test.SimulatedRadioControl;
39-
import com.android.internal.telephony.CallManager;
4039

4140
import java.util.List;
4241

@@ -89,7 +88,6 @@ public void handleMessage(Message msg) {
8988

9089
if(mOutgoingPhone.equals("GSM")) {
9190
logd("Make a new CDMAPhone and destroy the old GSMPhone.");
92-
CallManager.getInstance().unregisterPhone(mActivePhone);
9391

9492
((GSMPhone)mActivePhone).dispose();
9593
Phone oldPhone = mActivePhone;
@@ -102,11 +100,9 @@ public void handleMessage(Message msg) {
102100

103101
mActivePhone = PhoneFactory.getCdmaPhone();
104102
((GSMPhone)oldPhone).removeReferences();
105-
CallManager.getInstance().registerPhone(mActivePhone);
106103
oldPhone = null;
107104
} else {
108105
logd("Make a new GSMPhone and destroy the old CDMAPhone.");
109-
CallManager.getInstance().unregisterPhone(mActivePhone);
110106

111107
((CDMAPhone)mActivePhone).dispose();
112108
//mActivePhone = null;
@@ -120,7 +116,6 @@ public void handleMessage(Message msg) {
120116

121117
mActivePhone = PhoneFactory.getGsmPhone();
122118
((CDMAPhone)oldPhone).removeReferences();
123-
CallManager.getInstance().registerPhone(mActivePhone);
124119
oldPhone = null;
125120
}
126121

0 commit comments

Comments
 (0)