mirror of
https://github.com/JustinZeus/Wholphin.git
synced 2026-07-09 16:11:20 +02:00
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:
parent
86977f846c
commit
40a8249469
9 changed files with 540 additions and 0 deletions
|
|
@ -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])
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue