mirror of
https://github.com/nextcloud/android.git
synced 2024-11-27 09:39:25 +03:00
Show maintenance mode message while sharing via link, unsharing, updating sharing, moving, synchronizing folders and copying operations
This commit is contained in:
parent
e2befe4c4b
commit
2238a09915
1 changed files with 18 additions and 0 deletions
|
@ -191,6 +191,9 @@ public class ErrorMessageAdapter {
|
|||
message = String.format(res.getString(R.string.forbidden_permissions),
|
||||
res.getString(R.string.share_link_forbidden_permissions));
|
||||
|
||||
} else if (result.getCode() == ResultCode.MAINTENANCE_MODE) {
|
||||
message = res.getString(R.string.maintenance_mode);
|
||||
|
||||
} else { // Generic error
|
||||
// Show a Message, operation finished without success
|
||||
message = res.getString(R.string.share_link_file_error);
|
||||
|
@ -209,6 +212,9 @@ public class ErrorMessageAdapter {
|
|||
message = String.format(res.getString(R.string.forbidden_permissions),
|
||||
res.getString(R.string.unshare_link_forbidden_permissions));
|
||||
|
||||
} else if (result.getCode() == ResultCode.MAINTENANCE_MODE) {
|
||||
message = res.getString(R.string.maintenance_mode);
|
||||
|
||||
} else { // Generic error
|
||||
// Show a Message, operation finished without success
|
||||
message = res.getString(R.string.unshare_link_file_error);
|
||||
|
@ -228,6 +234,9 @@ public class ErrorMessageAdapter {
|
|||
message = String.format(res.getString(R.string.forbidden_permissions),
|
||||
res.getString(R.string.update_link_forbidden_permissions));
|
||||
|
||||
} else if (result.getCode() == ResultCode.MAINTENANCE_MODE) {
|
||||
message = res.getString(R.string.maintenance_mode);
|
||||
|
||||
} else { // Generic error
|
||||
// Show a Message, operation finished without success
|
||||
message = res.getString(R.string.update_link_file_error);
|
||||
|
@ -250,6 +259,9 @@ public class ErrorMessageAdapter {
|
|||
} else if (result.getCode() == ResultCode.INVALID_CHARACTER_DETECT_IN_SERVER) {
|
||||
message = res.getString(R.string.filename_forbidden_charaters_from_server);
|
||||
|
||||
} else if (result.getCode() == ResultCode.MAINTENANCE_MODE) {
|
||||
message = res.getString(R.string.maintenance_mode);
|
||||
|
||||
} else { // Generic error
|
||||
// Show a Message, operation finished without success
|
||||
message = res.getString(R.string.move_file_error);
|
||||
|
@ -264,6 +276,9 @@ public class ErrorMessageAdapter {
|
|||
message = String.format(res.getString(R.string.sync_current_folder_was_removed),
|
||||
folderPathName);
|
||||
|
||||
} else if (result.getCode() == ResultCode.MAINTENANCE_MODE) {
|
||||
message = res.getString(R.string.maintenance_mode);
|
||||
|
||||
} else { // Generic error
|
||||
// Show a Message, operation finished without success
|
||||
message = String.format(res.getString(R.string.sync_folder_failed_content),
|
||||
|
@ -284,6 +299,9 @@ public class ErrorMessageAdapter {
|
|||
} else if (result.getCode() == ResultCode.FORBIDDEN) {
|
||||
message = String.format(res.getString(R.string.forbidden_permissions),
|
||||
res.getString(R.string.forbidden_permissions_copy));
|
||||
|
||||
} else if (result.getCode() == ResultCode.MAINTENANCE_MODE) {
|
||||
message = res.getString(R.string.maintenance_mode);
|
||||
|
||||
} else { // Generic error
|
||||
// Show a Message, operation finished without success
|
||||
|
|
Loading…
Reference in a new issue