mirror of
https://github.com/vector-im/element-android.git
synced 2024-11-16 02:05:06 +08:00
Fix / clean bad method name
This commit is contained in:
parent
9494174c33
commit
4bfaa00be4
@ -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 New Issue
Block a user