File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
telephony/java/com/android/internal/telephony Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 3535import com .android .internal .telephony .gsm .UsimServiceTable ;
3636import com .android .internal .telephony .ims .IsimRecords ;
3737import com .android .internal .telephony .test .SimulatedRadioControl ;
38+ import com .android .internal .telephony .CallManager ;
3839
3940import java .util .List ;
4041
@@ -87,6 +88,7 @@ public void handleMessage(Message msg) {
8788
8889 if (mOutgoingPhone .equals ("GSM" )) {
8990 logd ("Make a new CDMAPhone and destroy the old GSMPhone." );
91+ CallManager .getInstance ().unregisterPhone (mActivePhone );
9092
9193 ((GSMPhone )mActivePhone ).dispose ();
9294 Phone oldPhone = mActivePhone ;
@@ -99,9 +101,11 @@ public void handleMessage(Message msg) {
99101
100102 mActivePhone = PhoneFactory .getCdmaPhone ();
101103 ((GSMPhone )oldPhone ).removeReferences ();
104+ CallManager .getInstance ().registerPhone (mActivePhone );
102105 oldPhone = null ;
103106 } else {
104107 logd ("Make a new GSMPhone and destroy the old CDMAPhone." );
108+ CallManager .getInstance ().unregisterPhone (mActivePhone );
105109
106110 ((CDMAPhone )mActivePhone ).dispose ();
107111 //mActivePhone = null;
@@ -115,6 +119,7 @@ public void handleMessage(Message msg) {
115119
116120 mActivePhone = PhoneFactory .getGsmPhone ();
117121 ((CDMAPhone )oldPhone ).removeReferences ();
122+ CallManager .getInstance ().registerPhone (mActivePhone );
118123 oldPhone = null ;
119124 }
120125
You can’t perform that action at this time.
0 commit comments