Skip to content

Commit

Permalink
Fix cannot hide project selector on map page
Browse files Browse the repository at this point in the history
  • Loading branch information
wasuphon committed Nov 15, 2021
1 parent 162f10f commit b9d6a73
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions app/src/main/java/org/rfcx/companion/view/map/MapFragment.kt
Original file line number Diff line number Diff line change
Expand Up @@ -322,12 +322,21 @@ class MapFragment : Fragment(), OnMapReadyCallback, LocationGroupListener,
listener?.hideBottomSheet()
}

projectRecyclerView.visibility = View.VISIBLE
projectSwipeRefreshView.visibility = View.VISIBLE
searchButton.visibility = View.GONE
trackingLayout.visibility = View.GONE
hideButtonOnMap()
listener?.hideBottomAppBar()
if (projectRecyclerView.visibility == View.VISIBLE) {
projectRecyclerView.visibility = View.GONE
projectSwipeRefreshView.visibility = View.GONE
searchButton.visibility = View.VISIBLE
trackingLayout.visibility = View.VISIBLE
showButtonOnMap()
listener?.showBottomAppBar()
} else {
projectRecyclerView.visibility = View.VISIBLE
projectSwipeRefreshView.visibility = View.VISIBLE
searchButton.visibility = View.GONE
trackingLayout.visibility = View.GONE
hideButtonOnMap()
listener?.hideBottomAppBar()
}

if (siteRecyclerView.visibility == View.VISIBLE) {
searchLayout.visibility = View.GONE
Expand Down

0 comments on commit b9d6a73

Please sign in to comment.