Use getTitle() for AccessPoint display name
Instead of getSsidStr(), AccessPoint display names should use getTitle() to accomodate Passpoint networks which use a provider name instead of a single ssid. This change allows the provider name to be displayed in the network details page, the long press wifi dialog, and the config editing dialog. Bug: 118705403 Test: atest WifiSettingsTest Change-Id: I930d6218c7e464ad20c0c61130e0cb9ce315d9a2
This commit is contained in:
@@ -265,11 +265,7 @@ public class WifiConfigController implements TextWatcher,
|
||||
configureSecuritySpinner();
|
||||
mConfigUi.setSubmitButton(res.getString(R.string.wifi_save));
|
||||
} else {
|
||||
if (!mAccessPoint.isPasspointConfig()) {
|
||||
mConfigUi.setTitle(mAccessPoint.getSsid());
|
||||
} else {
|
||||
mConfigUi.setTitle(mAccessPoint.getConfigName());
|
||||
}
|
||||
mConfigUi.setTitle(mAccessPoint.getTitle());
|
||||
|
||||
ViewGroup group = (ViewGroup) mView.findViewById(R.id.info);
|
||||
|
||||
|
Reference in New Issue
Block a user