From 62cc44116d1cdc074e0360930ff88ce36082254d Mon Sep 17 00:00:00 2001 From: Quang Luong Date: Tue, 7 Apr 2020 10:55:04 -0700 Subject: [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 --- .../src/com/android/wifitrackerlib/WifiPickerTracker.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libs') 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 -> { -- cgit v1.2.3