Skip to content

Commit

Permalink
Change function naming for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
natlibfi-burger committed Oct 29, 2024
1 parent d109de6 commit acc39dc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -133,16 +133,16 @@ class MainFragment : Fragment(R.layout.main_tabbed_host) {
}

/**
* Hide bottom tabs from the user
* Hide bottom navigation menu from the user
*/
fun hideTabs() {
fun hideBottomNavigationMenu() {
bottomView.visibility = View.GONE
}

/**
* Show user the bottom tabs
* Show user the bottom navigation menu
*/
fun showTabs() {
fun showBottomNavigationMenu() {
bottomView.visibility = View.VISIBLE
}
override fun onOptionsItemSelected(item: MenuItem): Boolean {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ internal class MainFragmentListenerDelegate(
val loginFragment = fragment as MainFragment
//Ensure the tabs are shown when pressed back
//Only changes something if the shown view is the login fragment where there is no tabs visible
loginFragment.showTabs()
loginFragment.showBottomNavigationMenu()
return@addCallback
}

Expand Down Expand Up @@ -755,7 +755,7 @@ internal class MainFragmentListenerDelegate(
//Use the current fragment as Main Fragment so we get
//to use the hideTabs() function
val loginFragment = this.fragment as MainFragment
loginFragment.hideTabs()
loginFragment.hideBottomNavigationMenu()
}

private fun openSettingsAccount(
Expand Down

0 comments on commit acc39dc

Please sign in to comment.