Skip to content

Commit

Permalink
Merge pull request #13319 from nextcloud/give-feedback-to-user-for-re…
Browse files Browse the repository at this point in the history
…ceiving-external-files-instead-crash

Show Snackbar If mStreamsToUpload is null on ReceiveExternalFilesActivity
  • Loading branch information
tobiasKaminsky authored Jul 26, 2024
2 parents ae4f62f + 8bc3d26 commit d5a438e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -899,6 +899,10 @@ public void uploadFile(String tmpName, String filename) {
}

public void uploadFiles() {
if (mStreamsToUpload == null) {
DisplayUtils.showSnackMessage(this, R.string.receive_external_files_activity_unable_to_find_file_to_upload);
return;
}

UriUploader uploader = new UriUploader(
this,
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -452,6 +452,7 @@
<string name="clipboard_label">Text copied from %1$s</string>

<string name="receive_external_files_activity_start_sync_folder_is_not_exists_message">Folder cannot be found, sync operation is cancelled</string>
<string name="receive_external_files_activity_unable_to_find_file_to_upload">Unable to find file to upload</string>

<string name="error_cant_bind_to_operations_service">Critical error: Unable to perform operations</string>

Expand Down

0 comments on commit d5a438e

Please sign in to comment.