Handle most HTTP client creation in common code

This commit is contained in:
davidoskky committed 2023-09-10 21:14:43 +02:00
1 parent d167092c83
commit 70ad5f322c
5 files changed
+90 -97

No files matched your search

@@ -144,6 +144,7 @@ class LoginActivity : AppCompatActivity(), DIAware {
repository.refreshLoginInformation(url, login, password)
CoroutineScope(Dispatchers.Main).launch {
repository.updateApiInformation()
val result = repository.login()
if (result) {
val (errorFetching, displaySelfossOnly) = repository.shouldBeSelfossInstance()