Merge "Wifi: Update message when scan result is empty"
This commit is contained in:
@@ -1203,6 +1203,8 @@
|
|||||||
<string name="wifi_menu_modify">Modify network</string>
|
<string name="wifi_menu_modify">Modify network</string>
|
||||||
<!-- Wi-Fi settings. text displayed when Wi-Fi is off and network list is empty [CHAR LIMIT=50]-->
|
<!-- Wi-Fi settings. text displayed when Wi-Fi is off and network list is empty [CHAR LIMIT=50]-->
|
||||||
<string name="wifi_empty_list_wifi_off">To see available networks, turn Wi-Fi on.</string>
|
<string name="wifi_empty_list_wifi_off">To see available networks, turn Wi-Fi on.</string>
|
||||||
|
<!-- Wi-Fi settings. text displayed when Wi-Fi is on and network list is empty [CHAR LIMIT=50]-->
|
||||||
|
<string name="wifi_empty_list_wifi_on">Wi-Fi on, but no Wi-Fi networks around.</string>
|
||||||
|
|
||||||
<!-- Dialog for Access Points --> <skip />
|
<!-- Dialog for Access Points --> <skip />
|
||||||
<!-- Label to show/hide advanced options -->
|
<!-- Label to show/hide advanced options -->
|
||||||
|
@@ -461,6 +461,9 @@ public class WifiSettings extends SettingsPreferenceFragment
|
|||||||
((WifiSettingsForSetupWizardXL)getActivity()).onAccessPointsUpdated(
|
((WifiSettingsForSetupWizardXL)getActivity()).onAccessPointsUpdated(
|
||||||
getPreferenceScreen(), accessPoints);
|
getPreferenceScreen(), accessPoints);
|
||||||
} else {
|
} else {
|
||||||
|
if(accessPoints.size() == 0) {
|
||||||
|
addMessagePreference(R.string.wifi_empty_list_wifi_on);
|
||||||
|
}
|
||||||
for (AccessPoint accessPoint : accessPoints) {
|
for (AccessPoint accessPoint : accessPoints) {
|
||||||
getPreferenceScreen().addPreference(accessPoint);
|
getPreferenceScreen().addPreference(accessPoint);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user