Merge pull request #2286 from sidhantailawadi/fix_toggle_hide_unhide_icon

Reverses the condition to show the toggle hide/unhide icon (#2280)
This commit is contained in:
Tibor Kaputa 2021-12-05 18:29:39 +01:00 committed by GitHub
commit 1950f776a3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -898,7 +898,7 @@ class ViewPagerActivity : SimpleActivity(), ViewPager.OnPageChangeListener, View
val favoriteIcon = if (medium.isFavorite) R.drawable.ic_star_vector else R.drawable.ic_star_outline_vector
bottom_favorite.setImageResource(favoriteIcon)
val hideIcon = if (medium.isHidden()) R.drawable.ic_unhide_vector else R.drawable.ic_hide_vector
val hideIcon = if (medium.isHidden()) R.drawable.ic_hide_vector else R.drawable.ic_unhide_vector
bottom_toggle_file_visibility.setImageResource(hideIcon)
bottom_rotate.beVisibleIf(config.visibleBottomActions and BOTTOM_ACTION_ROTATE != 0 && getCurrentMedium()?.isImage() == true)