queue: reformat
This commit is contained in:
@@ -95,16 +95,16 @@ class QueueAdapter(private val listener: EditClickListListener<Song>) :
|
||||
notifyItemRangeChanged(
|
||||
since,
|
||||
lastIndex - since + 1,
|
||||
PAYLOAD_UPDATE_POSITION
|
||||
PAYLOAD_UPDATE_POSITION,
|
||||
)
|
||||
} else if (currentIndex > lastIndex) {
|
||||
L.d("Moved forwards, update items after index")
|
||||
val since = if (incremental) lastIndex else 0
|
||||
notifyItemRangeChanged(
|
||||
since,
|
||||
currentIndex - since + 1,
|
||||
PAYLOAD_UPDATE_POSITION
|
||||
)
|
||||
val since = if (incremental) lastIndex else 0
|
||||
notifyItemRangeChanged(
|
||||
since,
|
||||
currentIndex - since + 1,
|
||||
PAYLOAD_UPDATE_POSITION,
|
||||
)
|
||||
}
|
||||
|
||||
val lastIsPlaying = this.isPlaying
|
||||
|
||||
@@ -30,7 +30,6 @@ import dagger.hilt.android.AndroidEntryPoint
|
||||
import kotlin.math.min
|
||||
import org.oxycblt.auxio.databinding.FragmentQueueBinding
|
||||
import org.oxycblt.auxio.list.EditClickListListener
|
||||
import org.oxycblt.auxio.list.adapter.UpdateInstructions
|
||||
import org.oxycblt.auxio.playback.PlaybackViewModel
|
||||
import org.oxycblt.auxio.ui.ViewBindingFragment
|
||||
import org.oxycblt.auxio.util.collectImmediately
|
||||
|
||||
Reference in New Issue
Block a user