summaryrefslogtreecommitdiff
path: root/service
diff options
context:
space:
mode:
Diffstat (limited to 'service')
-rw-r--r--service/java/com/android/server/wifi/WifiNetworkSuggestionsManager.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/service/java/com/android/server/wifi/WifiNetworkSuggestionsManager.java b/service/java/com/android/server/wifi/WifiNetworkSuggestionsManager.java
index 38c4acfc2..3b23030b5 100644
--- a/service/java/com/android/server/wifi/WifiNetworkSuggestionsManager.java
+++ b/service/java/com/android/server/wifi/WifiNetworkSuggestionsManager.java
@@ -1469,7 +1469,8 @@ public class WifiNetworkSuggestionsManager {
Set<ExtendedWifiNetworkSuggestion> approvedExtNetworkSuggestions =
extNetworkSuggestions
.stream()
- .filter(n -> n.perAppInfo.hasUserApproved)
+ .filter(n -> n.perAppInfo.hasUserApproved
+ || n.perAppInfo.carrierId != TelephonyManager.UNKNOWN_CARRIER_ID)
.collect(Collectors.toSet());
if (approvedExtNetworkSuggestions.isEmpty()) {
return null;