Loading src/java/com/android/internal/telephony/imsphone/ImsPhoneCallTracker.java +4 −6 Original line number Original line Diff line number Diff line Loading @@ -2490,8 +2490,8 @@ public class ImsPhoneCallTracker extends CallTracker implements ImsPullCall { if (reasonInfo.getCode() == ImsReasonInfo.CODE_SIP_ALTERNATE_EMERGENCY_CALL if (reasonInfo.getCode() == ImsReasonInfo.CODE_SIP_ALTERNATE_EMERGENCY_CALL && mAutoRetryFailedWifiEmergencyCall) { && mAutoRetryFailedWifiEmergencyCall) { Pair<ImsCall, ImsReasonInfo> callInfo = new Pair<>(imsCall, reasonInfo); Pair<ImsCall, ImsReasonInfo> callInfo = new Pair<>(imsCall, reasonInfo); mPhone.getDefaultPhone().getServiceStateTracker().registerForNetworkAttached( mPhone.getDefaultPhone().mCi.registerForOn(ImsPhoneCallTracker.this, ImsPhoneCallTracker.this, EVENT_REDIAL_WIFI_E911_CALL, callInfo); EVENT_REDIAL_WIFI_E911_CALL, callInfo); sendMessageDelayed(obtainMessage(EVENT_REDIAL_WIFI_E911_TIMEOUT, callInfo), sendMessageDelayed(obtainMessage(EVENT_REDIAL_WIFI_E911_TIMEOUT, callInfo), TIMEOUT_REDIAL_WIFI_E911_MS); TIMEOUT_REDIAL_WIFI_E911_MS); final ConnectivityManager mgr = (ConnectivityManager) mPhone.getContext() final ConnectivityManager mgr = (ConnectivityManager) mPhone.getContext() Loading Loading @@ -3544,8 +3544,7 @@ public class ImsPhoneCallTracker extends CallTracker implements ImsPullCall { Pair<ImsCall, ImsReasonInfo> callInfo = Pair<ImsCall, ImsReasonInfo> callInfo = (Pair<ImsCall, ImsReasonInfo>) ((AsyncResult) msg.obj).userObj; (Pair<ImsCall, ImsReasonInfo>) ((AsyncResult) msg.obj).userObj; removeMessages(EVENT_REDIAL_WIFI_E911_TIMEOUT); removeMessages(EVENT_REDIAL_WIFI_E911_TIMEOUT); mPhone.getDefaultPhone().getServiceStateTracker() mPhone.getDefaultPhone().mCi.unregisterForOn(this); .unregisterForNetworkAttached(this); ImsPhoneConnection oldConnection = findConnection(callInfo.first); ImsPhoneConnection oldConnection = findConnection(callInfo.first); if (oldConnection == null) { if (oldConnection == null) { sendCallStartFailedDisconnect(callInfo.first, callInfo.second); sendCallStartFailedDisconnect(callInfo.first, callInfo.second); Loading Loading @@ -3573,8 +3572,7 @@ public class ImsPhoneCallTracker extends CallTracker implements ImsPullCall { } } case EVENT_REDIAL_WIFI_E911_TIMEOUT: { case EVENT_REDIAL_WIFI_E911_TIMEOUT: { Pair<ImsCall, ImsReasonInfo> callInfo = (Pair<ImsCall, ImsReasonInfo>) msg.obj; Pair<ImsCall, ImsReasonInfo> callInfo = (Pair<ImsCall, ImsReasonInfo>) msg.obj; mPhone.getDefaultPhone().getServiceStateTracker() mPhone.getDefaultPhone().mCi.unregisterForOn(this); .unregisterForNetworkAttached(this); removeMessages(EVENT_REDIAL_WIFI_E911_CALL); removeMessages(EVENT_REDIAL_WIFI_E911_CALL); sendCallStartFailedDisconnect(callInfo.first, callInfo.second); sendCallStartFailedDisconnect(callInfo.first, callInfo.second); break; break; Loading Loading
src/java/com/android/internal/telephony/imsphone/ImsPhoneCallTracker.java +4 −6 Original line number Original line Diff line number Diff line Loading @@ -2490,8 +2490,8 @@ public class ImsPhoneCallTracker extends CallTracker implements ImsPullCall { if (reasonInfo.getCode() == ImsReasonInfo.CODE_SIP_ALTERNATE_EMERGENCY_CALL if (reasonInfo.getCode() == ImsReasonInfo.CODE_SIP_ALTERNATE_EMERGENCY_CALL && mAutoRetryFailedWifiEmergencyCall) { && mAutoRetryFailedWifiEmergencyCall) { Pair<ImsCall, ImsReasonInfo> callInfo = new Pair<>(imsCall, reasonInfo); Pair<ImsCall, ImsReasonInfo> callInfo = new Pair<>(imsCall, reasonInfo); mPhone.getDefaultPhone().getServiceStateTracker().registerForNetworkAttached( mPhone.getDefaultPhone().mCi.registerForOn(ImsPhoneCallTracker.this, ImsPhoneCallTracker.this, EVENT_REDIAL_WIFI_E911_CALL, callInfo); EVENT_REDIAL_WIFI_E911_CALL, callInfo); sendMessageDelayed(obtainMessage(EVENT_REDIAL_WIFI_E911_TIMEOUT, callInfo), sendMessageDelayed(obtainMessage(EVENT_REDIAL_WIFI_E911_TIMEOUT, callInfo), TIMEOUT_REDIAL_WIFI_E911_MS); TIMEOUT_REDIAL_WIFI_E911_MS); final ConnectivityManager mgr = (ConnectivityManager) mPhone.getContext() final ConnectivityManager mgr = (ConnectivityManager) mPhone.getContext() Loading Loading @@ -3544,8 +3544,7 @@ public class ImsPhoneCallTracker extends CallTracker implements ImsPullCall { Pair<ImsCall, ImsReasonInfo> callInfo = Pair<ImsCall, ImsReasonInfo> callInfo = (Pair<ImsCall, ImsReasonInfo>) ((AsyncResult) msg.obj).userObj; (Pair<ImsCall, ImsReasonInfo>) ((AsyncResult) msg.obj).userObj; removeMessages(EVENT_REDIAL_WIFI_E911_TIMEOUT); removeMessages(EVENT_REDIAL_WIFI_E911_TIMEOUT); mPhone.getDefaultPhone().getServiceStateTracker() mPhone.getDefaultPhone().mCi.unregisterForOn(this); .unregisterForNetworkAttached(this); ImsPhoneConnection oldConnection = findConnection(callInfo.first); ImsPhoneConnection oldConnection = findConnection(callInfo.first); if (oldConnection == null) { if (oldConnection == null) { sendCallStartFailedDisconnect(callInfo.first, callInfo.second); sendCallStartFailedDisconnect(callInfo.first, callInfo.second); Loading Loading @@ -3573,8 +3572,7 @@ public class ImsPhoneCallTracker extends CallTracker implements ImsPullCall { } } case EVENT_REDIAL_WIFI_E911_TIMEOUT: { case EVENT_REDIAL_WIFI_E911_TIMEOUT: { Pair<ImsCall, ImsReasonInfo> callInfo = (Pair<ImsCall, ImsReasonInfo>) msg.obj; Pair<ImsCall, ImsReasonInfo> callInfo = (Pair<ImsCall, ImsReasonInfo>) msg.obj; mPhone.getDefaultPhone().getServiceStateTracker() mPhone.getDefaultPhone().mCi.unregisterForOn(this); .unregisterForNetworkAttached(this); removeMessages(EVENT_REDIAL_WIFI_E911_CALL); removeMessages(EVENT_REDIAL_WIFI_E911_CALL); sendCallStartFailedDisconnect(callInfo.first, callInfo.second); sendCallStartFailedDisconnect(callInfo.first, callInfo.second); break; break; Loading