Skip to content

Commit

Permalink
[REFACTOR] #26 : 코멘트 피드백 반영
Browse files Browse the repository at this point in the history
  • Loading branch information
tgyuuAn committed Oct 11, 2023
1 parent 1825559 commit b88682b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/src/main/java/com/wap/wapp/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,15 @@ class MainActivity : AppCompatActivity() {
val typedArray = resources.obtainTypedArray(R.array.hide_bottomNavigation_fragments)

for (index in 0..typedArray.length()) {
hideBottomNavigationFragments.add(typedArray.getResourceId(index, 0))
hideBottomNavigationFragments.add(typedArray.getResourceId(index, 0,))
}

typedArray.recycle()

navController.addOnDestinationChangedListener { _, destination, _ ->

binding.bnvMainBottomNaviView.isVisible = !(destination.id in hideBottomNavigationFragments)
binding.bnvMainBottomNaviView.isVisible =
(destination.id !in hideBottomNavigationFragments)
}
}
}

0 comments on commit b88682b

Please sign in to comment.