Don't update Material lib to alpha02 🙆🏻
This commit is contained in:
parent
45f5c18725
commit
25fbbce11e
2 changed files with 46 additions and 61 deletions
|
@ -20,7 +20,6 @@ import com.h6ah4i.android.widget.advrecyclerview.swipeable.SwipeableItemConstant
|
|||
import com.h6ah4i.android.widget.advrecyclerview.swipeable.action.SwipeResultAction
|
||||
import com.h6ah4i.android.widget.advrecyclerview.swipeable.action.SwipeResultActionDefault
|
||||
import com.h6ah4i.android.widget.advrecyclerview.swipeable.action.SwipeResultActionRemoveItem
|
||||
import com.h6ah4i.android.widget.advrecyclerview.swipeable.annotation.SwipeableItemResults
|
||||
import me.zhanghai.android.fastscroll.PopupTextProvider
|
||||
|
||||
class PlayingQueueAdapter(
|
||||
|
@ -153,8 +152,8 @@ class PlayingQueueAdapter(
|
|||
mDragStateFlags = flags
|
||||
}
|
||||
|
||||
override fun getSwipeableContainerView(): View? {
|
||||
return dummyContainer
|
||||
override fun getSwipeableContainerView(): View {
|
||||
return dummyContainer!!
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -165,10 +164,7 @@ class PlayingQueueAdapter(
|
|||
private const val UP_NEXT = 2
|
||||
}
|
||||
|
||||
override fun onSwipeItem(
|
||||
holder: ViewHolder?,
|
||||
position: Int, @SwipeableItemResults result: Int
|
||||
): SwipeResultAction {
|
||||
override fun onSwipeItem(holder: ViewHolder, position: Int, result: Int): SwipeResultAction? {
|
||||
return if (result == SwipeableItemConstants.RESULT_CANCELED) {
|
||||
SwipeResultActionDefault()
|
||||
} else {
|
||||
|
@ -176,7 +172,7 @@ class PlayingQueueAdapter(
|
|||
}
|
||||
}
|
||||
|
||||
override fun onGetSwipeReactionType(holder: ViewHolder?, position: Int, x: Int, y: Int): Int {
|
||||
override fun onGetSwipeReactionType(holder: ViewHolder, position: Int, x: Int, y: Int): Int {
|
||||
return if (onCheckCanStartDrag(holder!!, position, x, y)) {
|
||||
SwipeableItemConstants.REACTION_CAN_NOT_SWIPE_BOTH_H
|
||||
} else {
|
||||
|
@ -184,10 +180,10 @@ class PlayingQueueAdapter(
|
|||
}
|
||||
}
|
||||
|
||||
override fun onSwipeItemStarted(p0: ViewHolder?, p1: Int) {
|
||||
override fun onSwipeItemStarted(holder: ViewHolder, p1: Int) {
|
||||
}
|
||||
|
||||
override fun onSetSwipeBackground(holder: ViewHolder?, position: Int, result: Int) {
|
||||
override fun onSetSwipeBackground(holder: ViewHolder, position: Int, result: Int) {
|
||||
}
|
||||
|
||||
internal class SwipedResultActionRemoveItem(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue