diff --git a/app/src/main/java/eu/faircode/email/FragmentOptionsConnection.java b/app/src/main/java/eu/faircode/email/FragmentOptionsConnection.java index aeefca1842..9af093e4db 100644 --- a/app/src/main/java/eu/faircode/email/FragmentOptionsConnection.java +++ b/app/src/main/java/eu/faircode/email/FragmentOptionsConnection.java @@ -118,6 +118,7 @@ public class FragmentOptionsConnection extends FragmentBase implements SharedPre private TextView tvNetworkInfo; private Group grpValidated; + private Group grpCustomSsl; private final static String[] RESET_OPTIONS = new String[]{ "metered", "download", "download_limited", "roaming", "rlah", @@ -181,6 +182,7 @@ public class FragmentOptionsConnection extends FragmentBase implements SharedPre tvNetworkInfo = view.findViewById(R.id.tvNetworkInfo); grpValidated = view.findViewById(R.id.grpValidated); + grpCustomSsl = view.findViewById(R.id.grpCustomSsl); setOptions(); @@ -587,6 +589,7 @@ public class FragmentOptionsConnection extends FragmentBase implements SharedPre FragmentDialogTheme.setBackground(getContext(), view, false); tvNetworkMetered.setVisibility(View.GONE); tvNetworkRoaming.setVisibility(View.GONE); + grpCustomSsl.setVisibility(SSLHelper.customTrustManager() ? View.VISIBLE : View.GONE); cardDebug.setVisibility(View.GONE); PreferenceManager.getDefaultSharedPreferences(getContext()).registerOnSharedPreferenceChangeListener(this); diff --git a/app/src/main/res/layout/fragment_options_connection.xml b/app/src/main/res/layout/fragment_options_connection.xml index fa29200b20..1a8d732574 100644 --- a/app/src/main/res/layout/fragment_options_connection.xml +++ b/app/src/main/res/layout/fragment_options_connection.xml @@ -657,6 +657,14 @@ android:layout_width="0dp" android:layout_height="0dp" app:constraint_referenced_ids="swValidated,tvValidatedHint,swVpnOnly" /> + +