Skip to content

Commit

Permalink
Force debug view initial state
Browse files Browse the repository at this point in the history
  • Loading branch information
Nain57 committed Mar 27, 2022
1 parent 7e0bb25 commit 7440ea1
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,10 @@ class MainMenu(context: Context, private val scenario: Scenario) : OverlayMenuCo
override fun onCreate() {
super.onCreate()

// Ensure the debug view state is correct
getMenuItemView<View>(R.id.layout_debug)?.visibility = View.GONE
setOverlayViewVisibility(View.GONE)

lifecycleScope.launch {
repeatOnLifecycle(Lifecycle.State.STARTED) {
launch { viewModel?.eventList?.collect { onEventListChanged(it) } }
Expand Down

0 comments on commit 7440ea1

Please sign in to comment.