From 09127827a38b700ba4dc74ddeffcb7f787310f88 Mon Sep 17 00:00:00 2001
From: ZetaTom <70907959+ZetaTom@users.noreply.github.com>
Date: Wed, 29 Nov 2023 08:29:07 +0100
Subject: [PATCH] Use custom quota exceeded error message
Signed-off-by: ZetaTom <70907959+ZetaTom@users.noreply.github.com>
---
.../java/com/owncloud/android/utils/ErrorMessageAdapter.java | 3 +++
app/src/main/res/values/strings.xml | 1 +
2 files changed, 4 insertions(+)
diff --git a/app/src/main/java/com/owncloud/android/utils/ErrorMessageAdapter.java b/app/src/main/java/com/owncloud/android/utils/ErrorMessageAdapter.java
index a53b6d99f3..abde01affd 100644
--- a/app/src/main/java/com/owncloud/android/utils/ErrorMessageAdapter.java
+++ b/app/src/main/java/com/owncloud/android/utils/ErrorMessageAdapter.java
@@ -437,6 +437,9 @@ public final class ErrorMessageAdapter {
} else if (result.getCode() == ResultCode.ACCOUNT_NOT_THE_SAME) {
message = res.getString(R.string.auth_account_not_the_same);
+ } else if (result.getCode() == ResultCode.QUOTA_EXCEEDED) {
+ message = res.getString(R.string.upload_quota_exceeded);
+
}
else if (!TextUtils.isEmpty(result.getHttpPhrase())) {
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 3e91ba7bc3..28a810398b 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -831,6 +831,7 @@
Sync conflict, please resolve manually
Cannot create local file
File could not be copied to local storage
+ Storage quota exceeded
Server not available
Delete entries
Dismiss notification