Commit 4c62da09 authored by Daniel Wolf's avatar Daniel Wolf
Browse files

Before disabling a type the opposite has to be enabled

parent 03bb7f30
...@@ -91,6 +91,7 @@ public class CurrentNetworksFragment extends Fragment { ...@@ -91,6 +91,7 @@ public class CurrentNetworksFragment extends Fragment {
.setPositiveButton(R.string.disable, new DialogInterface.OnClickListener() { .setPositiveButton(R.string.disable, new DialogInterface.OnClickListener() {
@Override @Override
public void onClick(DialogInterface dialogInterface, int i) { public void onClick(DialogInterface dialogInterface, int i) {
PreferencesAccessor.setIPv6Enabled(requireContext(), true);
PreferencesAccessor.setIPv4Enabled(requireContext(), false); PreferencesAccessor.setIPv4Enabled(requireContext(), false);
setDNSServersOf(properties); setDNSServersOf(properties);
} }
...@@ -107,6 +108,7 @@ public class CurrentNetworksFragment extends Fragment { ...@@ -107,6 +108,7 @@ public class CurrentNetworksFragment extends Fragment {
.setPositiveButton(R.string.disable, new DialogInterface.OnClickListener() { .setPositiveButton(R.string.disable, new DialogInterface.OnClickListener() {
@Override @Override
public void onClick(DialogInterface dialogInterface, int i) { public void onClick(DialogInterface dialogInterface, int i) {
PreferencesAccessor.setIPv4Enabled(requireContext(), true);
PreferencesAccessor.setIPv6Enabled(requireContext(), false); PreferencesAccessor.setIPv6Enabled(requireContext(), false);
setDNSServersOf(properties); setDNSServersOf(properties);
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment