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

Commit fabbdf72 authored by Shishir Agrawal's avatar Shishir Agrawal
Browse files

GpsLocationProvider: Read data enabled status from TelephonyManager.

Bug: 18814559
Change-Id: I1488bd763d95d5ad087bc4ceb5f4c3767c05b62f
parent ccfd34f6
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -788,9 +788,7 @@ public class GpsLocationProvider implements LocationProviderInterface {
        }

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