Skip to content

Commit

Permalink
Fixes debug icon not showing (#6951)
Browse files Browse the repository at this point in the history
  • Loading branch information
ericdecanini authored Aug 29, 2022
1 parent b5debe9 commit 6af5f9e
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,6 @@ class NewHomeDetailFragment :
super.onResume()
callManager.checkForProtocolsSupportIfNeeded()
refreshSpaceState()
refreshDebugButtonState()
}

private fun refreshSpaceState() {
Expand Down Expand Up @@ -305,14 +304,10 @@ class NewHomeDetailFragment :
}

views.appBarLayout.addOnOffsetChangedListener(AppBarLayout.OnOffsetChangedListener { _, verticalOffset ->
views.debugButton.isVisible = verticalOffset == 0
views.debugButton.isVisible = verticalOffset == 0 && buildMeta.isDebug && vectorPreferences.developerMode()
})
}

private fun refreshDebugButtonState() {
views.debugButton.isVisible = buildMeta.isDebug && vectorPreferences.developerMode()
}

/* ==========================================================================================
* KeysBackupBanner Listener
* ========================================================================================== */
Expand Down

0 comments on commit 6af5f9e

Please sign in to comment.