Skip to content

Commit

Permalink
Disable swiping on web apps in list
Browse files Browse the repository at this point in the history
  • Loading branch information
cylonid committed Aug 17, 2024
1 parent 7359b8d commit 930aaad
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ import com.cylonid.nativealpha.model.DataManager
import com.cylonid.nativealpha.model.WebApp
import com.ernestoyaquello.dragdropswiperecyclerview.DragDropSwipeRecyclerView
import com.ernestoyaquello.dragdropswiperecyclerview.listener.OnItemDragListener
import timber.log.Timber
import java.util.logging.Logger

class WebAppListFragment : Fragment(R.layout.fragment_web_app_list) {
private lateinit var adapter: WebAppListAdapter
Expand All @@ -28,6 +26,8 @@ class WebAppListFragment : Fragment(R.layout.fragment_web_app_list) {
list.adapter = adapter
list.orientation = DragDropSwipeRecyclerView.ListOrientation.VERTICAL_LIST_WITH_VERTICAL_DRAGGING
list.dragListener = onItemDragListener
list.disableSwipeDirection(DragDropSwipeRecyclerView.ListOrientation.DirectionFlag.RIGHT)
list.disableSwipeDirection(DragDropSwipeRecyclerView.ListOrientation.DirectionFlag.LEFT)
}

public fun updateWebAppList() {
Expand Down

0 comments on commit 930aaad

Please sign in to comment.