Skip to content

Commit

Permalink
Implement sharing current folder within the folder itself
Browse files Browse the repository at this point in the history
  • Loading branch information
abelgardep committed Jun 9, 2022
1 parent c5ffcad commit 8f87e35
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,10 @@ class MainFileListFragment : Fragment(),
updateActionModeAfterTogglingSelected()
true
}
(menu.findItem(R.id.action_share_current_folder)).setOnMenuItemClickListener {
containerActivity?.fileOperationsHelper?.showShareFile(mainFileListViewModel.getFile())
true
}
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ class FileDetailFragment : FileFragment(), View.OnClickListener {

} else if (PreviewVideoFragment.canBePreviewed(file) && file.fileIsDownloading != true) {
// Available offline exception, don't initialize streaming
if (!file.isAvailableLocally) {//&& file.isAvailableOffline()) {
if (!file.isAvailableLocally) { //&& file.isAvailableOffline()) {
// sync file content, then open with external apps
(activity as FileDisplayActivity).startSyncThenOpen(file)
} else {
Expand Down

0 comments on commit 8f87e35

Please sign in to comment.