mirror of
https://github.com/vector-im/element-android.git
synced 2024-11-15 01:35:07 +08:00
Fixes debug icon not showing (#6951)
This commit is contained in:
parent
b5debe92c0
commit
6af5f9ed7f
@ -188,7 +188,6 @@ class NewHomeDetailFragment :
|
||||
super.onResume()
|
||||
callManager.checkForProtocolsSupportIfNeeded()
|
||||
refreshSpaceState()
|
||||
refreshDebugButtonState()
|
||||
}
|
||||
|
||||
private fun refreshSpaceState() {
|
||||
@ -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
|
||||
* ========================================================================================== */
|
||||
|
Loading…
Reference in New Issue
Block a user