mirror of
https://github.com/vector-im/element-android.git
synced 2024-11-15 01:35:07 +08:00
Use debouncedClick
This commit is contained in:
parent
15695dca69
commit
81053f5492
@ -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)
|
||||
}
|
||||
|
||||
|
@ -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 ->
|
||||
|
Loading…
Reference in New Issue
Block a user