Merge "Show connection error reason for Passpoint AP"

This commit is contained in:
Treehugger Robot
2017-02-17 21:34:34 +00:00
committed by Gerrit Code Review

View File

@@ -422,7 +422,8 @@ public class AccessPoint implements Comparable<AccessPoint> {
// This is the active connection on non-passpoint network // This is the active connection on non-passpoint network
summary.append(getSummary(mContext, getDetailedState(), summary.append(getSummary(mContext, getDetailedState(),
mInfo != null && mInfo.isEphemeral())); mInfo != null && mInfo.isEphemeral()));
} else if (config != null && config.isPasspoint()) { } else if (config != null && config.isPasspoint()
&& config.getNetworkSelectionStatus().isNetworkEnabled()) {
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()) {