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

Commit 2999acb0 authored by Ariel Gertzenstein's avatar Ariel Gertzenstein
Browse files

Revert "GpsLocationProvider: Read data enabled status from TelephonyManager."...

Revert "GpsLocationProvider: Read data enabled status from TelephonyManager." as it reintroduces b/18922524

This reverts commit bde7bc45.

Change-Id: I1a0bcd1c2e0d4ade7efa980edd2105408bb48991
parent bde7bc45
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -788,8 +788,9 @@ public class GpsLocationProvider implements LocationProviderInterface {
        }

        if (info != null) {
            boolean dataEnabled = TelephonyManager.getDefault() != null ?
                TelephonyManager.getDefault().getDataEnabled() : true;
            boolean dataEnabled = TelephonyManager.getIntWithSubId(mContext.getContentResolver(),
                    Settings.Global.MOBILE_DATA, SubscriptionManager.getDefaultSubId(),
                    1) == 1;
            boolean networkAvailable = info.isAvailable() && dataEnabled;
            String defaultApn = getSelectedApn();
            if (defaultApn == null) {