Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -56,20 +56,6 @@ class ProjectActionsToolbar @JvmOverloads constructor(
onLongClick()
true
}
// Prevent DrawerLayout from intercepting touch events on this button
setOnTouchListener { view, event ->
when (event.action) {
android.view.MotionEvent.ACTION_DOWN -> {
// Request that parent views (like DrawerLayout) don't intercept touch events
parent?.requestDisallowInterceptTouchEvent(true)
}
android.view.MotionEvent.ACTION_UP, android.view.MotionEvent.ACTION_CANCEL -> {
// Allow parent to intercept again after the touch is done
parent?.requestDisallowInterceptTouchEvent(false)
}
}
false // Don't consume the event, let the click/long-click listeners handle it
}
}
binding.menuContainer.addView(item)
}
Expand Down