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

Commit 615f42de authored by Evan Laird's avatar Evan Laird
Browse files

Change from deprecated telephony api

TelephonyManager#setDataEnabled() is deprecated in favor of
TelephonyManager#setDataEnabled(int Reason, boolean enabled). This
change updates the call to the recommended one.

Test: atest SystemUITests
Bug: 238425913
Change-Id: I0b1dd8e715bbaa513d90a31defacf576993c6cc0
parent 34d2c31e
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -778,7 +778,8 @@ public class InternetDialogController implements AccessPointController.AccessPoi
            return;
        }

        mTelephonyManager.setDataEnabled(enabled);
        mTelephonyManager.setDataEnabledForReason(
                TelephonyManager.DATA_ENABLED_REASON_USER, enabled);
        if (disableOtherSubscriptions) {
            final List<SubscriptionInfo> subInfoList =
                    mSubscriptionManager.getActiveSubscriptionInfoList();