Skip to content

Commit

Permalink
Share icon removed if is picking a folder
Browse files Browse the repository at this point in the history
  • Loading branch information
davcres committed May 19, 2022
1 parent 611970a commit ba7982c
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,10 @@ public void onCreateOptionsMenu(@NonNull Menu menu, @NonNull MenuInflater inflat
mSearchView.setQueryHint(getResources().getString(R.string.actionbar_search));
mSearchView.setOnQueryTextFocusChangeListener(this);
mSearchView.setOnQueryTextListener(this);

if (isPickingAFolder()) {
menu.removeItem(menu.findItem(R.id.action_share_file).getItemId());
}
}

@Override
Expand Down

0 comments on commit ba7982c

Please sign in to comment.