Show maintenance mode message while sharing via link, unsharing, updating sharing, moving, synchronizing folders and copying operations

This commit is contained in:
davigonz 2016-12-23 12:39:41 +01:00 committed by AndyScherzinger
parent e2befe4c4b
commit 2238a09915
No known key found for this signature in database
GPG key ID: 6CADC7E3523C308B

View file

@ -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