Updated arguments for AccessPoint.getSummary calls

Changed the arguments for getSummary to reflect the changes in
settingslib

Bug: 118705403
Test: none
Change-Id: I2bd02e608a900865ff90dd78463a164fca39c905
This commit is contained in:
Quang Luong
2019-01-30 14:04:47 -08:00
parent 877a9a058b
commit cb0b08aac2
2 changed files with 4 additions and 4 deletions

View File

@@ -366,9 +366,8 @@ public class WifiConfigController implements TextWatcher,
suggestionOrSpecifierPackageName = config.creatorName;
}
String summary = AccessPoint.getSummary(
mConfigUi.getContext(), state, isEphemeral,
suggestionOrSpecifierPackageName,
providerFriendlyName);
mConfigUi.getContext(), /* ssid */ null, state, isEphemeral,
suggestionOrSpecifierPackageName);
addRow(group, R.string.wifi_status, summary);
}

View File

@@ -299,7 +299,8 @@ public class WifiStatusTest extends Activity {
WifiInfo info = mWifiManager.getConnectionInfo();
String summary = AccessPoint.getSummary(this, info.getSSID(),
networkInfo.getDetailedState(),
info.getNetworkId() == WifiConfiguration.INVALID_NETWORK_ID, null, null);
info.getNetworkId() == WifiConfiguration.INVALID_NETWORK_ID,
/* suggestionOrSpecifierPackageName */ null);
mNetworkState.setText(summary);
}
}