Wifi: Update message when scan result is empty
Handle case when Wi-Fi scan result is empty Change-Id: I03ccbf2603367efa3c6dfe20514e8c7c5a68b5d9 Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
This commit is contained in:
committed by
Irfan Sheriff
parent
5cce0e6e77
commit
6243e8e466
@@ -538,6 +538,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