use of android.net.vpn.VpnType in project android_packages_apps_Settings by LineageOS.
the class VpnTypeSelection method initTypeList.
private void initTypeList() {
PreferenceScreen root = getPreferenceScreen();
for (VpnType t : VpnManager.getSupportedVpnTypes()) {
String displayName = t.getDisplayName();
String message = String.format(getString(R.string.vpn_edit_title_add), displayName);
mTypeMap.put(message, t);
Preference pref = new Preference(this);
pref.setTitle(message);
pref.setSummary(t.getDescriptionId());
root.addPreference(pref);
}
}
Aggregations