Loading services/core/java/com/android/server/location/GpsLocationProvider.java +2 −3 Original line number Diff line number Diff line Loading @@ -788,9 +788,8 @@ 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() != null ? TelephonyManager.getDefault().getDataEnabled() : true; boolean networkAvailable = info.isAvailable() && dataEnabled; String defaultApn = getSelectedApn(); if (defaultApn == null) { Loading Loading
services/core/java/com/android/server/location/GpsLocationProvider.java +2 −3 Original line number Diff line number Diff line Loading @@ -788,9 +788,8 @@ 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() != null ? TelephonyManager.getDefault().getDataEnabled() : true; boolean networkAvailable = info.isAvailable() && dataEnabled; String defaultApn = getSelectedApn(); if (defaultApn == null) { Loading