show the Open Recycle Bin button at media only if enabled

This commit is contained in:
tibbi 2023-01-23 16:20:17 +01:00
parent 79512f2d1f
commit e07f45cb89
1 changed files with 1 additions and 1 deletions

View File

@ -242,7 +242,7 @@ class MediaActivity : SimpleActivity(), MediaOperationsListener {
findItem(R.id.open_camera).isVisible = mShowAll
findItem(R.id.about).isVisible = mShowAll
findItem(R.id.create_new_folder).isVisible = !mShowAll && mPath != RECYCLE_BIN && mPath != FAVORITES
findItem(R.id.open_recycle_bin).isVisible = mPath != RECYCLE_BIN
findItem(R.id.open_recycle_bin).isVisible = config.useRecycleBin && mPath != RECYCLE_BIN
findItem(R.id.temporarily_show_hidden).isVisible = !config.shouldShowHidden
findItem(R.id.stop_showing_hidden).isVisible = (!isRPlus() || isExternalStorageManager()) && config.temporarilyShowHidden