From e3371777154ce1b804a4110a6e4c12255ec11775 Mon Sep 17 00:00:00 2001 From: tzugen Date: Tue, 7 Dec 2021 00:06:41 +0100 Subject: [PATCH] Style fixes --- .../org/moire/ultrasonic/adapters/TrackViewBinder.kt | 2 -- .../org/moire/ultrasonic/fragment/PlayerFragment.kt | 8 +++++--- 2 files changed, 5 insertions(+), 5 deletions(-) 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(