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

am: 012a9c1f6e

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

View File

@@ -503,7 +503,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()) {