diff options
author | Quang Luong <qal@google.com> | 2020-04-07 10:55:04 -0700 |
---|---|---|
committer | Quang Luong <qal@google.com> | 2020-04-13 10:54:09 -0700 |
commit | 62cc44116d1cdc074e0360930ff88ce36082254d (patch) | |
tree | 30c529cfacd73ceb283adfd990a30198842b8311 /libs | |
parent | edbd063552857947211a0cae78ffc57ce707f8dd (diff) |
[WifiTrackerLib] Fix connected passpoint entry not showing
Fix connected passpoint entry not showing while there are no scan
results available by comparing strings using TextUtils.equals() instead
of ==.
Bug: 152623244
Test: manual visual verification
Change-Id: I2fbbf160f0e9c7e965a526fdf5857c7158d3e0a2
Diffstat (limited to 'libs')
-rw-r--r-- | libs/WifiTrackerLib/src/com/android/wifitrackerlib/WifiPickerTracker.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/WifiTrackerLib/src/com/android/wifitrackerlib/WifiPickerTracker.java b/libs/WifiTrackerLib/src/com/android/wifitrackerlib/WifiPickerTracker.java index c08b47cd1..b694aa66d 100644 --- a/libs/WifiTrackerLib/src/com/android/wifitrackerlib/WifiPickerTracker.java +++ b/libs/WifiTrackerLib/src/com/android/wifitrackerlib/WifiPickerTracker.java @@ -721,7 +721,7 @@ public class WifiPickerTracker extends BaseWifiTracker { final String connectedFqdn = wifiInfo.getPasspointFqdn(); mPasspointConfigCache.values().stream() .filter(config -> - config.getHomeSp().getFqdn() == connectedFqdn + TextUtils.equals(config.getHomeSp().getFqdn(), connectedFqdn) && !mPasspointWifiEntryCache.containsKey( uniqueIdToPasspointWifiEntryKey(config.getUniqueId()))) .findAny().ifPresent(config -> { |