Updated summary logic for wifi
am: 5d937fc95f
Change-Id: I20c55b4af7ecd658b7690e1597389bc9a679c573
This commit is contained in:
@@ -64,8 +64,10 @@
|
|||||||
<string name="wifi_disabled_password_failure">Authentication problem</string>
|
<string name="wifi_disabled_password_failure">Authentication problem</string>
|
||||||
<!-- Summary for the remembered network but currently not in range. -->
|
<!-- Summary for the remembered network but currently not in range. -->
|
||||||
<string name="wifi_not_in_range">Not in range</string>
|
<string name="wifi_not_in_range">Not in range</string>
|
||||||
|
<!-- Summary for the network but no internet connection was detected. -->
|
||||||
|
<string name="wifi_no_internet_no_reconnect">No Internet Access Detected, won\'t automatically reconnect.</string>
|
||||||
<!-- Summary for the remembered network but no internet connection was detected. -->
|
<!-- Summary for the remembered network but no internet connection was detected. -->
|
||||||
<string name="wifi_no_internet">No Internet Access Detected, won\'t automatically reconnect.</string>
|
<string name="wifi_no_internet">No Internet Access.</string>
|
||||||
<!-- Summary for saved networks -->
|
<!-- Summary for saved networks -->
|
||||||
<string name="saved_network">Saved by <xliff:g id="name">%1$s</xliff:g></string>
|
<string name="saved_network">Saved by <xliff:g id="name">%1$s</xliff:g></string>
|
||||||
|
|
||||||
|
|||||||
@@ -409,7 +409,10 @@ public class AccessPoint implements Comparable<AccessPoint> {
|
|||||||
String format = mContext.getString(R.string.available_via_passpoint);
|
String format = mContext.getString(R.string.available_via_passpoint);
|
||||||
summary.append(String.format(format, config.providerFriendlyName));
|
summary.append(String.format(format, config.providerFriendlyName));
|
||||||
} else if (config != null && config.hasNoInternetAccess()) {
|
} else if (config != null && config.hasNoInternetAccess()) {
|
||||||
summary.append(mContext.getString(R.string.wifi_no_internet));
|
int messageID = config.getNetworkSelectionStatus().isNetworkPermanentlyDisabled()
|
||||||
|
? R.string.wifi_no_internet_no_reconnect
|
||||||
|
: R.string.wifi_no_internet;
|
||||||
|
summary.append(mContext.getString(messageID));
|
||||||
} else if (config != null && !config.getNetworkSelectionStatus().isNetworkEnabled()) {
|
} else if (config != null && !config.getNetworkSelectionStatus().isNetworkEnabled()) {
|
||||||
WifiConfiguration.NetworkSelectionStatus networkStatus =
|
WifiConfiguration.NetworkSelectionStatus networkStatus =
|
||||||
config.getNetworkSelectionStatus();
|
config.getNetworkSelectionStatus();
|
||||||
|
|||||||
Reference in New Issue
Block a user