Skip to content

Commit

Permalink
[ANDROAPP-5805] Adapt top bar when searching
Browse files Browse the repository at this point in the history
  • Loading branch information
andresmr committed Feb 20, 2024
1 parent 33d9910 commit 8b90995
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ class SearchScreenConfigurator(
}

private fun openFilters() {
binding.programSpinner.visibility = View.VISIBLE
binding.title.visibility = View.GONE
binding.filterRecyclerLayout.visibility = View.VISIBLE
binding.searchContainer.visibility = View.GONE
if (isPortrait()) binding.navigationBar.hide()
Expand All @@ -80,6 +82,8 @@ class SearchScreenConfigurator(
}

fun closeBackdrop() {
binding.programSpinner.visibility = View.VISIBLE
binding.title.visibility = View.GONE
binding.filterRecyclerLayout.visibility = View.GONE
binding.searchContainer.visibility = View.GONE
if (isPortrait()) binding.navigationBar.show()
Expand All @@ -89,6 +93,8 @@ class SearchScreenConfigurator(

private fun openSearch() {
binding.filterRecyclerLayout.visibility = View.GONE
binding.programSpinner.visibility = View.GONE
binding.title.visibility = View.VISIBLE
binding.searchContainer.visibility = View.VISIBLE
if (isPortrait()) binding.navigationBar.hide()
filterIsOpenCallback(false)
Expand Down

0 comments on commit 8b90995

Please sign in to comment.