Hide DNS settings

This commit is contained in:
M66B
2024-01-06 11:42:46 +01:00
parent 49323e6516
commit 98cf3a129d
2 changed files with 10 additions and 0 deletions

View File

@@ -124,6 +124,7 @@ public class FragmentOptionsConnection extends FragmentBase implements SharedPre
private TextView tvNetworkInfo;
private Group grpValidated;
private Group grpCustomDns;
private Group grpCustomSsl;
private final static List<String> RESET_OPTIONS = Collections.unmodifiableList(Arrays.asList(
@@ -194,6 +195,7 @@ public class FragmentOptionsConnection extends FragmentBase implements SharedPre
tvNetworkInfo = view.findViewById(R.id.tvNetworkInfo);
grpValidated = view.findViewById(R.id.grpValidated);
grpCustomDns = view.findViewById(R.id.grpCustomDns);
grpCustomSsl = view.findViewById(R.id.grpCustomSsl);
setOptions();
@@ -642,6 +644,7 @@ public class FragmentOptionsConnection extends FragmentBase implements SharedPre
FragmentDialogTheme.setBackground(getContext(), view, false);
tvNetworkMetered.setVisibility(View.GONE);
tvNetworkRoaming.setVisibility(View.GONE);
grpCustomDns.setVisibility(debug || BuildConfig.DEBUG ? View.VISIBLE : View.GONE);
grpCustomSsl.setVisibility(SSLHelper.customTrustManager() ? View.VISIBLE : View.GONE);
cardDebug.setVisibility(View.GONE);

View File

@@ -720,6 +720,13 @@
android:layout_height="0dp"
app:constraint_referenced_ids="swValidated,tvValidatedHint,swVpnOnly" />
<androidx.constraintlayout.widget.Group
android:id="@+id/grpCustomDns"
android:layout_width="0dp"
android:layout_height="0dp"
app:constraint_referenced_ids="
swDnsCustom,tvDnsExtra,etDnsExtra" />
<androidx.constraintlayout.widget.Group
android:id="@+id/grpCustomSsl"
android:layout_width="0dp"