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

Before disabling a type the opposite has to be enabled

parent 03bb7f30
......@@ -91,6 +91,7 @@ public class CurrentNetworksFragment extends Fragment {
.setPositiveButton(R.string.disable, new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialogInterface, int i) {
PreferencesAccessor.setIPv6Enabled(requireContext(), true);
PreferencesAccessor.setIPv4Enabled(requireContext(), false);
setDNSServersOf(properties);
}
......@@ -107,6 +108,7 @@ public class CurrentNetworksFragment extends Fragment {
.setPositiveButton(R.string.disable, new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialogInterface, int i) {
PreferencesAccessor.setIPv4Enabled(requireContext(), true);
PreferencesAccessor.setIPv6Enabled(requireContext(), false);
setDNSServersOf(properties);
}
......
Markdown is supported
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