mirror of
https://github.com/readrops/Readrops.git
synced 2025-01-30 18:34:54 +01:00
Fix app crash when using an account url without http scheme
This commit is contained in:
parent
0d520e3c1f
commit
467c619590
@ -83,6 +83,9 @@ public class AddAccountActivity extends AppCompatActivity {
|
||||
String login = binding.addAccountLogin.getText().toString().trim();
|
||||
String password = binding.addAccountPassword.getText().toString().trim();
|
||||
|
||||
if (!(url.toLowerCase().contains("http://") || url.toLowerCase().contains("https://"))) {
|
||||
url = "https://" + url;
|
||||
}
|
||||
|
||||
if (editAccount) {
|
||||
accountToEdit.setUrl(url);
|
||||
|
Loading…
x
Reference in New Issue
Block a user