[update] Better UI

This commit is contained in:
acite
2025-09-14 18:26:05 +08:00
parent 9c04d7679c
commit cc540903d3
21 changed files with 661 additions and 98 deletions

View File

@@ -8,4 +8,17 @@ import com.acitelight.aether.model.Video
object Global {
var loggedIn by mutableStateOf(false)
var sameClassVideos: List<Video>? = null
private set
fun updateRelate(v: List<Video>, s: Video)
{
sameClassVideos = if (v.contains(s)) {
val index = v.indexOf(s)
val afterS = v.subList(index, v.size)
val beforeS = v.subList(0, index)
afterS + beforeS
} else {
v
}
}
}