Skip to content

Commit

Permalink
Merge pull request #12211 from nextcloud/fix/quota_exceeded_message
Browse files Browse the repository at this point in the history
Use custom quota exceeded error message
  • Loading branch information
AndyScherzinger authored Dec 3, 2023
2 parents 37e0d2e + 0912782 commit 7232aab
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -437,6 +437,9 @@ String getMessageForResult(RemoteOperationResult result, Resources res) {
} 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())) {
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -831,6 +831,7 @@
<string name="upload_sync_conflict">Sync conflict, please resolve manually</string>
<string name="upload_cannot_create_file">Cannot create local file</string>
<string name="upload_local_storage_not_copied">File could not be copied to local storage</string>
<string name="upload_quota_exceeded">Storage quota exceeded</string>
<string name="host_not_available">Server not available</string>
<string name="delete_entries">Delete entries</string>
<string name="dismiss_notification_description">Dismiss notification</string>
Expand Down

0 comments on commit 7232aab

Please sign in to comment.