From 0631e28c4c4e4a7dc99f3374d944b1952488e883 Mon Sep 17 00:00:00 2001 From: LagradOst Date: Thu, 27 Jan 2022 21:19:31 +0100 Subject: [PATCH] fixed zoro bug --- .../cloudstream3/ui/player/PlayerGeneratorViewModel.kt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/src/main/java/com/lagradost/cloudstream3/ui/player/PlayerGeneratorViewModel.kt b/app/src/main/java/com/lagradost/cloudstream3/ui/player/PlayerGeneratorViewModel.kt index 7bece164..e1a113fa 100644 --- a/app/src/main/java/com/lagradost/cloudstream3/ui/player/PlayerGeneratorViewModel.kt +++ b/app/src/main/java/com/lagradost/cloudstream3/ui/player/PlayerGeneratorViewModel.kt @@ -96,6 +96,11 @@ class PlayerGeneratorViewModel : ViewModel() { val currentLinks = mutableSetOf>() val currentSubs = mutableSetOf() + // clear old data + _currentSubs.postValue(currentSubs) + _currentLinks.postValue(currentLinks) + + // load more data _loadingLinks.postValue(Resource.Loading()) val loadingState = safeApiCall { generator?.generateLinks(clearCache = clearCache, isCasting = isCasting, {