This commit is contained in:
2025-08-13 10:17:00 +09:00
parent 81e4c77644
commit b8b088c1ab
16 changed files with 1052 additions and 46 deletions
@@ -231,8 +231,12 @@ class NextcloudApiHelper(val context: Context) {
.url("$server/ocs/v2.php/core/apppassword")
.build()
withContext(Dispatchers.IO) {
val response = httpClient.newCall(request).execute()
response
try {
val response = httpClient.newCall(request).execute()
response
} catch (e: IOException) {
Log.e("NextcloudApiHelper", "Error during Nextcloud logout", e)
}
}
preferences.edit {
putString("server", null)