Skip to content

Commit

Permalink
remove unused intent code
Browse files Browse the repository at this point in the history
  • Loading branch information
newhinton committed Jan 18, 2024
1 parent 2821dc3 commit d43629d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 39 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -190,15 +190,6 @@ protected void onPostExecute(Void aVoid) {
Dialogs.dismissSilently(loadingDialog);

for (String uploadFile : uploadList) {
//Todo: Allow Upload!
/*
Intent intent = new Intent(context, UploadService.class);
intent.putExtra(UploadService.LOCAL_PATH_ARG, uploadFile);
intent.putExtra(UploadService.UPLOAD_PATH_ARG, path);
intent.putExtra(UploadService.REMOTE_ARG, remote);
tryStartService(context, intent);
*/

EphemeralTaskManager.Companion.queueUpload(this.context, remote, uploadFile, path);
}
finish();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -548,13 +548,6 @@ public void onActivityResult(int requestCode, int resultCode, Intent data) {
}

for (String uploadFile : uploadList) {
//Todo: Allow Upload!!
/*Intent intent = new Intent(getContext(), UploadService.class);
intent.putExtra(UploadService.LOCAL_PATH_ARG, uploadFile);
intent.putExtra(UploadService.UPLOAD_PATH_ARG, directoryObject.getCurrentPath());
intent.putExtra(UploadService.REMOTE_ARG, remote);
tryStartService(context, intent);*/

EphemeralTaskManager.Companion.queueUpload(this.context, remote, uploadFile, directoryObject.getCurrentPath());
}
} else if (requestCode == FILE_PICKER_DOWNLOAD_RESULT) {
Expand All @@ -566,17 +559,7 @@ public void onActivityResult(int requestCode, int resultCode, Intent data) {
recyclerViewAdapter.cancelSelection();

for (FileItem downloadItem : downloadList) {

//Todo: Allow Downloads!
/*Intent intent = new Intent(getContext(), DownloadService.class);
intent.putExtra(DownloadService.DOWNLOAD_ITEM_ARG, downloadItem);
intent.putExtra(DownloadService.DOWNLOAD_PATH_ARG, selectedPath);
intent.putExtra(DownloadService.REMOTE_ARG, remote);
tryStartService(context, intent);*/

EphemeralTaskManager.Companion.queueDownload(this.context, remote, downloadItem, selectedPath);


}
downloadList.clear();
} else if (requestCode == FILE_PICKER_SYNC_RESULT && resultCode == FragmentActivity.RESULT_OK) {
Expand Down Expand Up @@ -969,13 +952,6 @@ private void moveLocationSelected() {
path2 = "//" + remoteName;
}
for (FileItem moveItem : moveList) {
//Todo: Allow Move!
/*Intent intent = new Intent(context, MoveService.class);
intent.putExtra(MoveService.REMOTE_ARG, remote);
intent.putExtra(MoveService.MOVE_DEST_PATH, directoryObject.getCurrentPath());
intent.putExtra(MoveService.MOVE_ITEM, moveItem);
intent.putExtra(MoveService.PATH, path2);
tryStartService(context, intent);*/
EphemeralTaskManager.Companion.queueMove(this.context, remote, directoryObject.getCurrentPath(), moveItem, path2);
}
Toasty.info(context, getString(R.string.moving_info), Toast.LENGTH_SHORT, true).show();
Expand Down Expand Up @@ -1488,12 +1464,6 @@ private void deleteFiles(final List<FileItem> deleteList) {
.setPositiveButton(getResources().getString(R.string.delete), (dialog, which) -> {
recyclerViewAdapter.cancelSelection();
for (FileItem deleteItem : deleteList) {
//Todo: Allow Delete!
/*Intent intent = new Intent(context, DeleteService.class);
intent.putExtra(DeleteService.REMOTE_ARG, remote);
intent.putExtra(DeleteService.DELETE_ITEM, deleteItem);
intent.putExtra(DeleteService.PATH, directoryObject.getCurrentPath());
tryStartService(context, intent);*/
EphemeralTaskManager.Companion.queueDelete(this.context, remote, deleteItem, directoryObject.getCurrentPath());
}
Toasty.info(context, getString(R.string.deleting_info), Toast.LENGTH_SHORT, true).show();
Expand Down

0 comments on commit d43629d

Please sign in to comment.