mirror of
https://github.com/strongswan/strongswan.git
synced 2025-10-04 00:00:14 -04:00
android: Don't print "null" if no user certificate is selected
This commit is contained in:
parent
4918e681ee
commit
1a16b2c0cb
@ -86,7 +86,8 @@ public class VpnProfileAdapter extends ArrayAdapter<VpnProfile>
|
||||
tv = vpnProfileView.findViewById(R.id.profile_item_certificate);
|
||||
if (profile.getVpnType().has(VpnTypeFeature.CERTIFICATE))
|
||||
{
|
||||
tv.setText(getContext().getString(R.string.profile_user_certificate_label) + ": " + profile.getUserCertificateAlias());
|
||||
String alias = profile.getUserCertificateAlias();
|
||||
tv.setText(getContext().getString(R.string.profile_user_certificate_label) + ": " + (alias != null ? alias : ""));
|
||||
tv.setVisibility(View.VISIBLE);
|
||||
}
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user