summaryrefslogtreecommitdiff
path: root/service
diff options
context:
space:
mode:
authorTreeHugger Robot <treehugger-gerrit@google.com>2020-04-24 02:25:36 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2020-04-24 02:25:36 +0000
commitfbfbe4b17e862e01caa20db25d52cdd0d83835d3 (patch)
tree04763cdf1531740650f1f110949fa447db7a9967 /service
parentbf5903c9c270c329aa2eaffcf777ce72752d7021 (diff)
parentd43b5f2f3e1bc80c86d32bf976ece572e81e2f95 (diff)
Merge "WifiNetworkSelector: Fix isFromCarrierOrPrivilegedApp()" into rvc-dev
Diffstat (limited to 'service')
-rw-r--r--service/java/com/android/server/wifi/WifiNetworkSelector.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/service/java/com/android/server/wifi/WifiNetworkSelector.java b/service/java/com/android/server/wifi/WifiNetworkSelector.java
index 20544282f..da583df65 100644
--- a/service/java/com/android/server/wifi/WifiNetworkSelector.java
+++ b/service/java/com/android/server/wifi/WifiNetworkSelector.java
@@ -1047,7 +1047,7 @@ public class WifiNetworkSelector {
private static boolean isFromCarrierOrPrivilegedApp(WifiConfiguration config) {
if (config.fromWifiNetworkSuggestion
- && config.carrierId == TelephonyManager.UNKNOWN_CARRIER_ID) {
+ && config.carrierId != TelephonyManager.UNKNOWN_CARRIER_ID) {
// Privileged carrier suggestion
return true;
}