- SharePasswordDialogFragment dialog =
- SharePasswordDialogFragment.newInstance( new OCFile(operation.getPath()),
- operation.getSendIntent());
- dialog.show(getSupportFragmentManager(), DIALOG_SHARE_PASSWORD);
+ if (!isTryShareAgain()) {
+ SharePasswordDialogFragment dialog =
+ SharePasswordDialogFragment.newInstance(new OCFile(operation.getPath()),
+ operation.getSendIntent());
+ dialog.show(getSupportFragmentManager(), DIALOG_SHARE_PASSWORD);
+ } else {
+ Toast t = Toast.makeText(this,
+ ErrorMessageAdapter.getErrorCauseMessage(result, operation, getResources()),
+ Toast.LENGTH_LONG);
+ t.show();
+ }