Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cac7b659 authored by Sarah Chin's avatar Sarah Chin Committed by Automerger Merge Worker
Browse files

Merge "Add missing calls to DataSettingsManager" am: 94525db2

Original change: https://android-review.googlesource.com/c/platform/frameworks/opt/telephony/+/2032432

Change-Id: I53e1582d6ab0abfea32a91976b7786116502f0b9
parents 131092fb 94525db2
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -3720,8 +3720,12 @@ public class ImsPhoneCallTracker extends CallTracker implements ImsPullCall {
            // Check with the DCTracker to see if data is enabled; there may be a case when
            // ImsPhoneCallTracker isn't being informed of the right data enabled state via its
            // registration, so we'll refresh now.
            boolean isDataEnabled = mPhone.getDefaultPhone().getDataEnabledSettings()
                    .isDataEnabled();
            boolean isDataEnabled;
            if (mPhone.getDefaultPhone().isUsingNewDataStack()) {
                isDataEnabled = mPhone.getDefaultPhone().getDataSettingsManager().isDataEnabled();
            } else {
                isDataEnabled = mPhone.getDefaultPhone().getDataEnabledSettings().isDataEnabled();
            }

            if (DBG) {
                log("onCallHandover ::  srcAccessTech=" + srcAccessTech + ", targetAccessTech="
+1 −0
Original line number Diff line number Diff line
@@ -722,6 +722,7 @@ public abstract class TelephonyTest {
        doReturn(true).when(mDataEnabledSettings).isDataEnabled();
        doReturn(true).when(mDataEnabledSettings).isDataEnabled(anyInt());
        doReturn(true).when(mDataEnabledSettings).isInternalDataEnabled();
        doReturn(true).when(mDataSettingsManager).isDataEnabled();
        doReturn(mNetworkRegistrationInfo).when(mServiceState).getNetworkRegistrationInfo(
                anyInt(), anyInt());
        doReturn(new HalVersion(1, 4)).when(mPhone).getHalVersion();