Support basic adding to playlists (#157)

Closes #143 

Adds option in the "More" menu to add the item to a playlist. Can also
create a playlist if needed.
This commit is contained in:
damontecres 2025-11-04 15:27:26 -05:00 committed by GitHub
parent 86977f846c
commit 40a8249469
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 540 additions and 0 deletions

View file

@ -0,0 +1,11 @@
package com.github.damontecres.wholphin.util
class TransformList<S, T>(
private val source: List<S>,
private val transform: (S) -> T,
) : AbstractList<T>() {
override val size: Int
get() = source.size
override fun get(index: Int): T = transform.invoke(source[index])
}