Wifi: Update message when scan result is empty
Handle case when Wi-Fi scan result is empty Change-Id: Ib09f030dbc0b71055a7aacf0848b97bd6c33af70 Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
This commit is contained in:
@@ -461,6 +461,9 @@ public class WifiSettings extends SettingsPreferenceFragment
|
||||
((WifiSettingsForSetupWizardXL)getActivity()).onAccessPointsUpdated(
|
||||
getPreferenceScreen(), accessPoints);
|
||||
} else {
|
||||
if(accessPoints.size() == 0) {
|
||||
addMessagePreference(R.string.wifi_empty_list_wifi_on);
|
||||
}
|
||||
for (AccessPoint accessPoint : accessPoints) {
|
||||
getPreferenceScreen().addPreference(accessPoint);
|
||||
}
|
||||
|
Reference in New Issue
Block a user