SetupWizard improvement: let users see "scanning"

Current UI shows nothing when there's no connection available, even when
the device is finding some. So user cannot know whether the static
"Not connected" screen means: the device is finding right now, or
actually no network is available.

Change-Id: Ia8ea1c66956e8de819f6a98362bcc9086bda172c
This commit is contained in:
Daisuke Miyakawa
2010-09-13 15:26:43 -07:00
parent 746d913e0b
commit b962d6566c
3 changed files with 29 additions and 8 deletions

View File

@@ -667,4 +667,12 @@ public class WifiSettings extends SettingsPreferenceFragment
mSelectedAccessPoint = null;
showConfigUi(null, true);
}
/* package */ int getAccessPointsCount() {
if (mAccessPoints != null) {
return mAccessPoints.getPreferenceCount();
} else {
return 0;
}
}
}