Skip to content

Commit a10cc89

Browse files
cco3android code review
authored andcommitted
Merge "Revert "Telephony: Register/Unregister Phones with CallManager""
2 parents 6a1dca3 + 6a0f525 commit a10cc89

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
import com.android.internal.telephony.gsm.UsimServiceTable;
3636
import com.android.internal.telephony.ims.IsimRecords;
3737
import com.android.internal.telephony.test.SimulatedRadioControl;
38-
import com.android.internal.telephony.CallManager;
3938

4039
import java.util.List;
4140

@@ -88,7 +87,6 @@ public void handleMessage(Message msg) {
8887

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

9391
((GSMPhone)mActivePhone).dispose();
9492
Phone oldPhone = mActivePhone;
@@ -101,11 +99,9 @@ public void handleMessage(Message msg) {
10199

102100
mActivePhone = PhoneFactory.getCdmaPhone();
103101
((GSMPhone)oldPhone).removeReferences();
104-
CallManager.getInstance().registerPhone(mActivePhone);
105102
oldPhone = null;
106103
} else {
107104
logd("Make a new GSMPhone and destroy the old CDMAPhone.");
108-
CallManager.getInstance().unregisterPhone(mActivePhone);
109105

110106
((CDMAPhone)mActivePhone).dispose();
111107
//mActivePhone = null;
@@ -119,7 +115,6 @@ public void handleMessage(Message msg) {
119115

120116
mActivePhone = PhoneFactory.getGsmPhone();
121117
((CDMAPhone)oldPhone).removeReferences();
122-
CallManager.getInstance().registerPhone(mActivePhone);
123118
oldPhone = null;
124119
}
125120

0 commit comments

Comments
 (0)