Merge "Show connection error reason for Passpoint AP" am: 855889b086

am: 4896a04013

Change-Id: I14f9205148adbb1819ed3c40b6536d1c72cd6536
This commit is contained in:
Yuxin Chang
2017-02-17 22:30:16 +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()) {