Merge cherrypicks of ['googleplex-android-review.googlesource.com/28583996'] into 24Q3-release.
Change-Id: I50fdba197aa5441818c0f16b71002b80bf73f49b
diff --git a/src/com/android/services/telephony/TelephonyConnectionService.java b/src/com/android/services/telephony/TelephonyConnectionService.java
index 4421f0c..148cff3 100644
--- a/src/com/android/services/telephony/TelephonyConnectionService.java
+++ b/src/com/android/services/telephony/TelephonyConnectionService.java
@@ -1168,7 +1168,8 @@
boolean needToTurnOnRadio = (isEmergencyNumber && (!isRadioOn() || isAirplaneModeOn))
|| (isRadioPowerDownOnBluetooth() && !isPhoneWifiCallingEnabled);
- if (mSatelliteController.isSatelliteEnabled()) {
+ if (mSatelliteController.isSatelliteEnabled()
+ || mSatelliteController.isSatelliteBeingEnabled()) {
Log.d(this, "onCreateOutgoingConnection, "
+ " needToTurnOnRadio=" + needToTurnOnRadio
+ " needToTurnOffSatellite=" + needToTurnOffSatellite
@@ -1266,7 +1267,8 @@
// reporting the OUT_OF_SERVICE state.
return phone.getState() == PhoneConstants.State.OFFHOOK
|| (phone.getServiceStateTracker().isRadioOn()
- && !mSatelliteController.isSatelliteEnabled());
+ && (!mSatelliteController.isSatelliteEnabled()
+ && !mSatelliteController.isSatelliteBeingEnabled()));
} else {
SubscriptionInfoInternal subInfo = SubscriptionManagerService
.getInstance().getSubscriptionInfoInternal(phone.getSubId());
@@ -2130,7 +2132,8 @@
}
private boolean isSatelliteBlockingCall(boolean isEmergencyNumber) {
- if (!mSatelliteController.isSatelliteEnabled()) {
+ if (!mSatelliteController.isSatelliteEnabled()
+ && !mSatelliteController.isSatelliteBeingEnabled()) {
return false;
}