Fix: App gets stuck when sharing a folder when there is a credential error

This commit is contained in:
masensio 2014-05-28 17:14:21 +02:00
parent 4bb658fe88
commit bdc4de75bc
1 changed files with 7 additions and 0 deletions

View File

@ -447,6 +447,13 @@ implements OnRemoteOperationListener, ComponentsGetter {
)) {
requestCredentialsUpdate();
if (result.getCode() == ResultCode.UNAUTHORIZED) {
dismissLoadingDialog();
Toast t = Toast.makeText(this, ErrorMessageAdapter.getErrorCauseMessage(result, operation, getResources()),
Toast.LENGTH_LONG);
t.show();
}
} else if (operation instanceof CreateShareOperation) {
onCreateShareOperationFinish((CreateShareOperation) operation, result);