mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-25 19:05:56 +03:00
Merge pull request #7102 from vector-im/feature/eric/double-space-click-fix
Fixes Crash On Double Click Of Space FABs
This commit is contained in:
commit
8dbfafb324
3 changed files with 6 additions and 6 deletions
1
changelog.d/7102.bugfix
Normal file
1
changelog.d/7102.bugfix
Normal file
|
@ -0,0 +1 @@
|
||||||
|
Fixes crash when quickly double clicking FABs in the new app layout
|
|
@ -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)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -27,7 +27,7 @@ import im.vector.app.features.navigation.Navigator
|
||||||
import javax.inject.Inject
|
import javax.inject.Inject
|
||||||
|
|
||||||
@AndroidEntryPoint
|
@AndroidEntryPoint
|
||||||
class NewChatBottomSheet @Inject constructor() : BottomSheetDialogFragment() {
|
class NewChatBottomSheet : BottomSheetDialogFragment() {
|
||||||
|
|
||||||
@Inject lateinit var navigator: Navigator
|
@Inject lateinit var navigator: Navigator
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue