mirror of
https://github.com/element-hq/element-android
synced 2024-11-24 18:35:40 +03:00
Fix / clean bad method name
This commit is contained in:
parent
9494174c33
commit
4bfaa00be4
2 changed files with 3 additions and 3 deletions
|
@ -338,7 +338,7 @@ class RoomDetailFragment :
|
|||
}
|
||||
}
|
||||
|
||||
override fun canSwipeModelModel(model: EpoxyModel<*>): Boolean {
|
||||
override fun canSwipeModel(model: EpoxyModel<*>): Boolean {
|
||||
return when (model) {
|
||||
is MessageFileItem,
|
||||
is MessageImageVideoItem,
|
||||
|
|
|
@ -40,7 +40,7 @@ class RoomMessageTouchHelperCallback(private val context: Context,
|
|||
|
||||
interface QuickReplayHandler {
|
||||
fun performQuickReplyOnHolder(model: EpoxyModel<*>)
|
||||
fun canSwipeModelModel(model: EpoxyModel<*>): Boolean
|
||||
fun canSwipeModel(model: EpoxyModel<*>): Boolean
|
||||
}
|
||||
|
||||
private var swipeBack: Boolean = false
|
||||
|
@ -67,7 +67,7 @@ class RoomMessageTouchHelperCallback(private val context: Context,
|
|||
}
|
||||
|
||||
override fun getMovementFlags(recyclerView: RecyclerView, viewHolder: EpoxyViewHolder): Int {
|
||||
if (handler.canSwipeModelModel(viewHolder.model)) {
|
||||
if (handler.canSwipeModel(viewHolder.model)) {
|
||||
return ItemTouchHelper.Callback.makeMovementFlags(0, ItemTouchHelper.START) //Should we use Left?
|
||||
} else {
|
||||
return 0
|
||||
|
|
Loading…
Reference in a new issue