Fix issue with limiting access points
There should not be a limit on the general settings screen to display access points Change-Id: I81fd438c7464a229f00dcddca359476d8684a349
This commit is contained in:
@@ -451,6 +451,8 @@ public class WifiSettings extends SettingsPreferenceFragment
|
||||
// AccessPoints are automatically sorted with TreeSet.
|
||||
final Collection<AccessPoint> accessPoints = constructAccessPoints();
|
||||
|
||||
if (mInXlSetupWizard) {
|
||||
//limit access points on set up wizard
|
||||
int count = MAX_MENU_COUNT_IN_XL;
|
||||
for (AccessPoint accessPoint : accessPoints) {
|
||||
mAccessPoints.addPreference(accessPoint);
|
||||
@@ -459,6 +461,11 @@ public class WifiSettings extends SettingsPreferenceFragment
|
||||
break;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
for (AccessPoint accessPoint : accessPoints) {
|
||||
mAccessPoints.addPreference(accessPoint);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user