Commit 7e70107c authored by Daniel Wolf's avatar Daniel Wolf
Browse files

Using TYPE_CLASS_NUMBER only allows one decimal place (but somehow using inputType in xml doesn't)

parent d5256fc9
......@@ -220,9 +220,6 @@ public class DNSCreationDialog extends UtilityDialog {
if(settingV6 || customPorts){
ed_dns1.setInputType(InputType.TYPE_CLASS_TEXT);
ed_dns2.setInputType(InputType.TYPE_CLASS_TEXT);
} else {
ed_dns1.setInputType(InputType.TYPE_CLASS_NUMBER | InputType.TYPE_NUMBER_FLAG_DECIMAL);
ed_dns2.setInputType(InputType.TYPE_CLASS_NUMBER | InputType.TYPE_NUMBER_FLAG_DECIMAL);
}
if(settingV6){
InputFilter filter = new InputCharacterFilter(customPorts ?
......
......@@ -265,9 +265,6 @@ public class MainFragment extends Fragment {
if(settingV6 || customPorts){
dns1.setInputType(InputType.TYPE_CLASS_TEXT);
dns2.setInputType(InputType.TYPE_CLASS_TEXT);
} else {
dns1.setInputType(InputType.TYPE_CLASS_NUMBER | InputType.TYPE_NUMBER_FLAG_DECIMAL);
dns2.setInputType(InputType.TYPE_CLASS_NUMBER | InputType.TYPE_NUMBER_FLAG_DECIMAL);
}
if(!settingV6){
InputFilter filter = new InputCharacterFilter(customPorts ?
......
......@@ -318,9 +318,6 @@ public class ConfigureActivity extends AppCompatActivity {
if(settingV6 || customPorts){
ed_dns1.setInputType(InputType.TYPE_CLASS_TEXT);
ed_dns2.setInputType(InputType.TYPE_CLASS_TEXT);
} else {
ed_dns1.setInputType(InputType.TYPE_CLASS_NUMBER | InputType.TYPE_NUMBER_FLAG_DECIMAL);
ed_dns2.setInputType(InputType.TYPE_CLASS_NUMBER | InputType.TYPE_NUMBER_FLAG_DECIMAL);
}
InputFilter filter;
if(settingV6){
......
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