Use debouncedClick

This commit is contained in:
Benoit Marty 2021-06-18 15:32:33 +02:00
parent 15695dca69
commit 81053f5492
2 changed files with 3 additions and 3 deletions

View File

@ -128,7 +128,7 @@ class SpaceSettingsMenuBottomSheet : VectorBaseBottomSheetDialogFragment<BottomS
isLastAdmin = isAdmin && otherAdminCount == 0
}.disposeOnDestroyView()
views.spaceBetaTag.setOnClickListener {
views.spaceBetaTag.debouncedClicks {
bugReporter.openBugReportScreen(requireActivity(), ReportType.SPACE_BETA_FEEDBACK)
}

View File

@ -64,8 +64,8 @@ class RoomWidgetPermissionBottomSheet :
}
private fun setupViews() {
views.widgetPermissionDecline.setOnClickListener { doDecline() }
views.widgetPermissionContinue.setOnClickListener { doAccept() }
views.widgetPermissionDecline.debouncedClicks { doDecline() }
views.widgetPermissionContinue.debouncedClicks { doAccept() }
}
override fun invalidate() = withState(viewModel) { state ->