trim for nodeinfo

This commit is contained in:
Thomas 2023-03-13 16:40:49 +01:00
parent d79c09c692
commit bbcc9244e3
2 changed files with 2 additions and 1 deletions

View File

@ -168,7 +168,7 @@ public class FragmentLoginMain extends Fragment {
}
binding.continueButton.setEnabled(false);
NodeInfoVM nodeInfoVM = new ViewModelProvider(requireActivity()).get(NodeInfoVM.class);
String instance = binding.loginInstance.getText().toString();
String instance = binding.loginInstance.getText().toString().trim();
nodeInfoVM.getNodeInfo(instance).observe(requireActivity(), nodeInfo -> {
if (nodeInfo != null) {
BaseMainActivity.software = nodeInfo.software.name.toUpperCase();

View File

@ -7,4 +7,5 @@ Changed:
Fixed:
- Fix an issue with Nitter and some URLs
- Fix an issue when entering a Peertube instance
- Some crashes