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:
Irfan Sheriff
2010-10-08 16:07:35 -07:00
parent 297da30060
commit 9cf1b00657

View File

@@ -451,6 +451,8 @@ public class WifiSettings extends SettingsPreferenceFragment
// AccessPoints are automatically sorted with TreeSet. // AccessPoints are automatically sorted with TreeSet.
final Collection<AccessPoint> accessPoints = constructAccessPoints(); final Collection<AccessPoint> accessPoints = constructAccessPoints();
if (mInXlSetupWizard) {
//limit access points on set up wizard
int count = MAX_MENU_COUNT_IN_XL; int count = MAX_MENU_COUNT_IN_XL;
for (AccessPoint accessPoint : accessPoints) { for (AccessPoint accessPoint : accessPoints) {
mAccessPoints.addPreference(accessPoint); mAccessPoints.addPreference(accessPoint);
@@ -459,6 +461,11 @@ public class WifiSettings extends SettingsPreferenceFragment
break; break;
} }
} }
} else {
for (AccessPoint accessPoint : accessPoints) {
mAccessPoints.addPreference(accessPoint);
}
}
} }
} }