Remove deprecated AccessPoint#getConfigName() in SavedNetworkComparator
Replace it with AccessPoint#getTitle() Bug: 129740481 Test: manual Change-Id: I92a500cb86c37f84217ac4fae75e44d79d0d22f9
This commit is contained in:
@@ -30,7 +30,7 @@ public final class SavedNetworkComparator {
|
|||||||
@Override
|
@Override
|
||||||
public int compare(AccessPoint ap1, AccessPoint ap2) {
|
public int compare(AccessPoint ap1, AccessPoint ap2) {
|
||||||
return mCollator.compare(
|
return mCollator.compare(
|
||||||
nullToEmpty(ap1.getConfigName()), nullToEmpty(ap2.getConfigName()));
|
nullToEmpty(ap1.getTitle()), nullToEmpty(ap2.getTitle()));
|
||||||
}
|
}
|
||||||
|
|
||||||
private String nullToEmpty(String string) {
|
private String nullToEmpty(String string) {
|
||||||
|
Reference in New Issue
Block a user