Skip to content

Commit

Permalink
Don't show select all option when all files are selected
Browse files Browse the repository at this point in the history
  • Loading branch information
abelgardep committed May 4, 2022
1 parent 4d78052 commit 8b38cb3
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,6 @@ class MainFileListFragment : Fragment(),

var actionMode: ActionMode? = null

var enableSelectAll = true

private var statusBarColorActionMode: Int? = null
private var statusBarColor: Int? = null

Expand Down Expand Up @@ -492,7 +490,6 @@ class MainFileListFragment : Fragment(),
when (menuId) {
R.id.action_share_file -> {
containerActivity?.fileOperationsHelper?.showShareFile(singleFile)
enableSelectAll = false
return true
}
R.id.action_open_file_with -> {
Expand Down Expand Up @@ -677,7 +674,7 @@ class MainFileListFragment : Fragment(),

fileMenuFilter.filter(
menu,
enableSelectAll,
checkedCount != fileListAdapter.itemCount - 1, // -1 because one of them is the footer :S
true,
fileListOption.isAvailableOffline(),
fileListOption.isSharedByLink()
Expand Down

0 comments on commit 8b38cb3

Please sign in to comment.