diff --git a/ultrasonic/src/main/kotlin/org/moire/ultrasonic/adapters/TrackViewBinder.kt b/ultrasonic/src/main/kotlin/org/moire/ultrasonic/adapters/TrackViewBinder.kt index 38903da6..2ed77e52 100644 --- a/ultrasonic/src/main/kotlin/org/moire/ultrasonic/adapters/TrackViewBinder.kt +++ b/ultrasonic/src/main/kotlin/org/moire/ultrasonic/adapters/TrackViewBinder.kt @@ -5,9 +5,7 @@ import android.content.Context import android.view.LayoutInflater import android.view.MenuItem import android.view.MotionEvent -import android.view.View import android.view.ViewGroup -import androidx.core.view.MotionEventCompat import androidx.lifecycle.LifecycleOwner import com.drakeet.multitype.ItemViewBinder import org.koin.core.component.KoinComponent diff --git a/ultrasonic/src/main/kotlin/org/moire/ultrasonic/fragment/PlayerFragment.kt b/ultrasonic/src/main/kotlin/org/moire/ultrasonic/fragment/PlayerFragment.kt index 3c22a01b..2b2c61d3 100644 --- a/ultrasonic/src/main/kotlin/org/moire/ultrasonic/fragment/PlayerFragment.kt +++ b/ultrasonic/src/main/kotlin/org/moire/ultrasonic/fragment/PlayerFragment.kt @@ -864,9 +864,11 @@ class PlayerFragment : draggable = true, context = requireContext(), lifecycleOwner = viewLifecycleOwner, - ).apply { this.startDrag = { holder -> - dragTouchHelper.startDrag(holder) - } } + ).apply { + this.startDrag = { holder -> + dragTouchHelper.startDrag(holder) + } + } ) dragTouchHelper = ItemTouchHelper(object : ItemTouchHelper.SimpleCallback(