[fix] Crash while empty class set

This commit is contained in:
acite
2025-09-20 13:38:46 +08:00
parent f78bcc83c9
commit 92f0e8543e
2 changed files with 3 additions and 21 deletions

View File

@@ -53,6 +53,9 @@ class VideoScreenViewModel @Inject constructor(
if (Global.loggedIn) {
videoLibrary.classes.addAll(mediaManager.listVideoKlasses())
if(videoLibrary.classes.isEmpty())
return
var i = 0
for (it in videoLibrary.classes) {
videoLibrary.updatingMap[i++] = false