Fixes crash on double click of space fabs
This commit is contained in:
parent
e37344a059
commit
8177d9777c
|
@ -201,13 +201,12 @@ class NewHomeDetailFragment :
|
||||||
private fun setupFabs() {
|
private fun setupFabs() {
|
||||||
showFABs()
|
showFABs()
|
||||||
|
|
||||||
views.newLayoutCreateChatButton.setOnClickListener {
|
views.newLayoutCreateChatButton.debouncedClicks {
|
||||||
newChatBottomSheet.show(requireActivity().supportFragmentManager, NewChatBottomSheet.TAG)
|
newChatBottomSheet.takeIf { !it.isAdded }?.show(requireActivity().supportFragmentManager, NewChatBottomSheet.TAG)
|
||||||
}
|
}
|
||||||
|
|
||||||
views.newLayoutOpenSpacesButton.setOnClickListener {
|
views.newLayoutOpenSpacesButton.debouncedClicks {
|
||||||
// Click action for open spaces modal goes here
|
spaceListBottomSheet.takeIf { !it.isAdded }?.show(requireActivity().supportFragmentManager, SpaceListBottomSheet.TAG)
|
||||||
spaceListBottomSheet.show(requireActivity().supportFragmentManager, SpaceListBottomSheet.TAG)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue