java.lang.RuntimeException:
at android.app.ActivityThread.performLaunchActivity (ActivityThread.java:2957)
at android.app.ActivityThread.handleLaunchActivity (ActivityThread.java:3032)
at android.app.ActivityThread.-wrap11 (Unknown Source)
at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1696)
at android.os.Handler.dispatchMessage (Handler.java:105)
at android.os.Looper.loop (Looper.java:164)
at android.app.ActivityThread.main (ActivityThread.java:6944)
at java.lang.reflect.Method.invoke (Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run (Zygote.java:327)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1374)
Caused by: java.lang.IllegalArgumentException:
at okhttp3.HttpUrl$Builder.parse (HttpUrl.java:1333)
at okhttp3.HttpUrl.get (HttpUrl.java:916)
at retrofit2.Retrofit$Builder.baseUrl (Retrofit.java:458)
at com.github.gotify.api.ClientFactory.defaultClient (ClientFactory.java:47)
at com.github.gotify.api.ClientFactory.clientToken (ClientFactory.java:28)
at com.github.gotify.sharing.ShareActivity.onCreate (ShareActivity.java:82)
at android.app.Activity.performCreate (Activity.java:7183)
at android.app.Instrumentation.callActivityOnCreate (Instrumentation.java:1220)
at android.app.ActivityThread.performLaunchActivity (ActivityThread.java:2910)
* Added setting to toggle precise date as default display
* Applied spotless
* Improved time format setting with a ListPreference
* Fixed default time format value in list preference
Co-authored-by: Rémi Rigal <remi.rigal@orange.com>
When swiping away a message it is only removed from the local message
lists and a snackbar appears. When the snackbar is dismissed or the user
deletes another message the delete request is sent to the server. If the
user presses "undo" on the snackbar the message is reinserted into the
local lists at its previous position.
- Add information (link to documentation) when no messages are present
- Add example URL in LoginActivity to indicate the expected format
- Fix capitalization in UI
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.