Remove deprecated AccessPoint#getConfigName() in SavedNetworkComparator

Replace it with AccessPoint#getTitle()

Bug: 129740481
Test: manual
Change-Id: I92a500cb86c37f84217ac4fae75e44d79d0d22f9
This commit is contained in:
Arc Wang
2019-04-18 11:38:33 +08:00
parent 5d0f4efcfa
commit f83b91ba32

View File

@@ -30,7 +30,7 @@ public final class SavedNetworkComparator {
@Override
public int compare(AccessPoint ap1, AccessPoint ap2) {
return mCollator.compare(
nullToEmpty(ap1.getConfigName()), nullToEmpty(ap2.getConfigName()));
nullToEmpty(ap1.getTitle()), nullToEmpty(ap2.getTitle()));
}
private String nullToEmpty(String string) {