Skip to content

Commit

Permalink
Fix lint issue
Browse files Browse the repository at this point in the history
  • Loading branch information
SIKV committed Jul 15, 2023
1 parent 575d465 commit d7b459c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/src/main/java/com/github/sikv/photos/ui/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -138,14 +138,14 @@ class MainActivity : AppCompatActivity() {
}
}

private fun handleBottomNavigationVisibility(fragment: Fragment?) {
fun handleBottomNavigationVisibility(fragment: Fragment?) {
// Hide bottom navigation if [Photo Details] is opened.
val bottomNavigationVisible = fragment !is PhotoDetailsFragment
binding.bottomNavigationView.isVisible = bottomNavigationVisible
}

private fun handleBottomNavigationVisibility() {
supportFragmentManager.fragments.forEach { rootFragment ->
supportFragmentManager.fragments.iterator().forEach { rootFragment ->
if (!rootFragment.isHidden) {
// Check the current fragment.
handleBottomNavigationVisibility(rootFragment.childFragmentManager.fragments.lastOrNull())
Expand Down

0 comments on commit d7b459c

Please sign in to comment.