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,12 +451,19 @@ 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();
int count = MAX_MENU_COUNT_IN_XL; if (mInXlSetupWizard) {
for (AccessPoint accessPoint : accessPoints) { //limit access points on set up wizard
mAccessPoints.addPreference(accessPoint); int count = MAX_MENU_COUNT_IN_XL;
count--; for (AccessPoint accessPoint : accessPoints) {
if (count <= 0) { mAccessPoints.addPreference(accessPoint);
break; count--;
if (count <= 0) {
break;
}
}
} else {
for (AccessPoint accessPoint : accessPoints) {
mAccessPoints.addPreference(accessPoint);
} }
} }
} }