Fix freeze when login URL has trailing whitespace.

The problem is that HttpUrl.parse parses URLs with trailing whitespace without problems, but during the URL parsing in ClientFactory an exception is thrown in that case.
Other errors when instantiating the API client are now handled as well.
This commit is contained in:
leopoldsedev
2020-02-09 14:49:26 +01:00
committed by Jannis Mattheis
parent 7116ef522c
commit 15f4e8647f
2 changed files with 19 additions and 6 deletions

View File

@@ -4,7 +4,8 @@
<string name="navigation_drawer_close">Close navigation drawer</string>
<string name="nav_header_desc">Navigation header</string>
<string name="found_gotify_version">Found Gotify v%s</string>
<string name="version_failed">Request to \'%s\' failed with status code %d</string>
<string name="version_failed_status_code">Request to \'%s\' failed with status code %d</string>
<string name="version_failed">Request to \'%s\' failed. %s.</string>
<string name="wronguserpw">There is no user with this username and password</string>
<string name="create_client_title">Client Name</string>
<string name="create_client_message">Chose a name for your session</string>