Merge "Show connection error reason for Passpoint AP"

am: 855889b086

Change-Id: I164f575dfc5dd69912f433e46b1d70b1fd11b1e6
This commit is contained in:
Yuxin Chang
2017-02-17 22:22:05 +00:00
committed by android-build-merger

View File

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