queue: reformat

This commit is contained in:
Alexander Capehart
2026-11-01 16:18:57 -07:00
parent 1c0e29e9b1
commit b8a937e960
2 changed files with 7 additions and 8 deletions
@@ -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