mirror of
https://github.com/nextcloud/android.git
synced 2024-11-24 06:05:42 +03:00
Merge pull request #12231 from nextcloud/handle-sync-cancel
Fix: Cancel Sync does not work
This commit is contained in:
commit
548f770968
3 changed files with 6 additions and 0 deletions
|
@ -412,6 +412,8 @@ public class PreviewImageFragment extends FileFragment implements Injectable {
|
|||
seeDetails();
|
||||
} else if (itemId == R.id.action_download_file || itemId == R.id.action_sync_file) {
|
||||
containerActivity.getFileOperationsHelper().syncFile(getFile());
|
||||
}else if(itemId == R.id.action_cancel_sync){
|
||||
containerActivity.getFileOperationsHelper().cancelTransference(getFile());
|
||||
} else if (itemId == R.id.action_set_as_wallpaper) {
|
||||
containerActivity.getFileOperationsHelper().setPictureAs(getFile(), getImageView());
|
||||
} else if (itemId == R.id.action_export_file) {
|
||||
|
|
|
@ -450,6 +450,8 @@ public class PreviewMediaFragment extends FileFragment implements OnTouchListene
|
|||
seeDetails();
|
||||
} else if (itemId == R.id.action_sync_file) {
|
||||
containerActivity.getFileOperationsHelper().syncFile(getFile());
|
||||
} else if (itemId == R.id.action_cancel_sync) {
|
||||
containerActivity.getFileOperationsHelper().cancelTransference(getFile());
|
||||
} else if (itemId == R.id.action_stream_media) {
|
||||
containerActivity.getFileOperationsHelper().streamMediaFile(getFile());
|
||||
} else if (itemId == R.id.action_export_file) {
|
||||
|
|
|
@ -330,6 +330,8 @@ public class PreviewTextFileFragment extends PreviewTextFragment {
|
|||
seeDetails();
|
||||
} else if (itemId == R.id.action_sync_file) {
|
||||
containerActivity.getFileOperationsHelper().syncFile(getFile());
|
||||
} else if(itemId == R.id.action_cancel_sync){
|
||||
containerActivity.getFileOperationsHelper().cancelTransference(getFile());
|
||||
} else if (itemId == R.id.action_edit) {
|
||||
containerActivity.getFileOperationsHelper().openFileWithTextEditor(getFile(), getContext());
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue