[Wi-Fi] Replace WifiTracker with WifiTracker2 for SavedAccessPointsWifiSettings2
Use SavedNetworkTracker instead of WifiTracker, it provides Wi-Fi signal information for saved networks. This is the main UX difference of this change. Bug: 144543677 Test: make RunSettingsRoboTests ROBOTEST_FILTER=com.android.settings.wifi. Change-Id: I546ad08ffd2f6f736023cb1f3e1cb344a5842e14
This commit is contained in:
@@ -18,10 +18,6 @@ package com.android.settings.wifi.savedaccesspoints2;
|
||||
|
||||
import android.content.Context;
|
||||
|
||||
import com.android.settingslib.wifi.WifiSavedConfigUtils;
|
||||
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
/**
|
||||
* Controller that manages a PreferenceGroup, which contains a list of subscribed access points.
|
||||
*/
|
||||
@@ -31,12 +27,4 @@ public class SubscribedAccessPointsPreferenceController2 extends
|
||||
public SubscribedAccessPointsPreferenceController2(Context context, String preferenceKey) {
|
||||
super(context, preferenceKey);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void refreshSavedAccessPoints() {
|
||||
mAccessPoints = WifiSavedConfigUtils.getAllConfigs(mContext, mWifiManager).stream()
|
||||
.filter(accessPoint -> accessPoint.isPasspointConfig())
|
||||
.sorted(SavedNetworkComparator2.INSTANCE)
|
||||
.collect(Collectors.toList());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user