Merge "[Wi-Fi] Replace WifiEntryShell#getSecurityString with WifiEntry#getSecurityString"

This commit is contained in:
TreeHugger Robot
2020-01-23 01:41:19 +00:00
committed by Android (Google) Code Review
3 changed files with 2 additions and 9 deletions

View File

@@ -411,7 +411,7 @@ public class WifiConfigController2 implements TextWatcher,
}
addRow(group, R.string.wifi_security,
WifiEntryShell.getSecurityString(mWifiEntry, false));
mWifiEntry.getSecurityString(false /* concise */));
mView.findViewById(R.id.ip_fields).setVisibility(View.GONE);
}
if (mWifiEntry.isSaved()

View File

@@ -48,13 +48,6 @@ public class WifiEntryShell {
*/
public static final int HIGHER_FREQ_5GHZ = 5900;
/**
* Mapping of the corresponding {@link AccessPoint} method
*/
public static String getSecurityString(WifiEntry wifiEntry, boolean concise) {
return "None";
}
// Passpoint methods
/**

View File

@@ -330,7 +330,7 @@ public class WifiDetailPreferenceController2 extends AbstractPreferenceControlle
mIpv6Category = screen.findPreference(KEY_IPV6_CATEGORY);
mIpv6AddressPref = screen.findPreference(KEY_IPV6_ADDRESSES_PREF);
mSecurityPref.setSummary(WifiEntryShell.getSecurityString(mWifiEntry, /* concise */ false));
mSecurityPref.setSummary(mWifiEntry.getSecurityString(false /* concise */));
}
private void setupEntityHeader(PreferenceScreen screen) {