Fix / clean bad method name

This commit is contained in:
Valere 2019-07-17 14:27:02 +02:00
parent 9494174c33
commit 4bfaa00be4
2 changed files with 3 additions and 3 deletions

View File

@ -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,

View File

@ -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