Removed history list swipe to remove callbacks

This commit is contained in:
Sylvain Berfini 2023-10-03 16:47:51 +02:00
parent 3bbccf6c89
commit 7f9dbaec2a

View file

@ -44,8 +44,6 @@ import org.linphone.ui.main.history.model.ConfirmationDialogModel
import org.linphone.ui.main.history.viewmodel.HistoryListViewModel
import org.linphone.utils.DialogUtils
import org.linphone.utils.Event
import org.linphone.utils.RecyclerViewSwipeUtils
import org.linphone.utils.RecyclerViewSwipeUtilsCallback
import org.linphone.utils.hideKeyboard
import org.linphone.utils.showKeyboard
@ -86,10 +84,6 @@ class HistoryListFragment : AbstractTopBarFragment() {
val layoutManager = LinearLayoutManager(requireContext())
binding.historyList.layoutManager = layoutManager
val swipeCallbacks = RecyclerViewSwipeUtilsCallback()
val swipeHelper = RecyclerViewSwipeUtils(swipeCallbacks)
swipeHelper.attachToRecyclerView(binding.historyList)
adapter.callLogLongClickedEvent.observe(viewLifecycleOwner) {
it.consume { model ->
val modalBottomSheet = HistoryMenuDialogFragment(