mirror of https://github.com/nextcloud/android
Fix: App gets stuck when sharing a folder when there is a credential error
This commit is contained in:
parent
4bb658fe88
commit
bdc4de75bc
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue