[Wi-Fi] Replace some WifiEntryShell methods with WifiEntry version

These WifiEntryShell methods are removed:

getNetworkId
hiddenSSID
isPasspoint

Bug: 143326832
Test: build
Change-Id: I6642992a90ea18328817cb58931cc370045b1e56
This commit is contained in:
Arc Wang
2020-01-02 18:11:32 +08:00
parent 0a13ae9aea
commit 08b4204643
4 changed files with 12 additions and 75 deletions

View File

@@ -341,7 +341,7 @@ public class WifiConfigController2 implements TextWatcher,
if ((!mWifiEntry.isSaved()
&& mWifiEntry.getConnectedState() != WifiEntry.CONNECTED_STATE_CONNECTED
&& !WifiEntryShell.isPasspoint(mWifiEntry))
&& !mWifiEntry.isSubscription())
|| mMode != WifiConfigUiBase2.MODE_VIEW) {
showSecurityFields(/* refreshEapMethods */ true, /* refreshCertificates */ true);
showIpConfigFields();
@@ -417,7 +417,7 @@ public class WifiConfigController2 implements TextWatcher,
}
if (mWifiEntry.isSaved()
|| mWifiEntry.getConnectedState() == WifiEntry.CONNECTED_STATE_CONNECTED
|| WifiEntryShell.isPasspoint(mWifiEntry)) {
|| mWifiEntry.isSubscription()) {
mConfigUi.setForgetButton(res.getString(R.string.wifi_forget));
}
}