reloadStoredEvent

This commit is contained in:
antonydp 2023-01-23 23:12:29 +01:00
parent 4dd205c549
commit 2363aadc5a
2 changed files with 4 additions and 2 deletions

View file

@ -60,7 +60,6 @@ import com.lagradost.cloudstream3.syncproviders.AccountManager.Companion.appStri
import com.lagradost.cloudstream3.syncproviders.AccountManager.Companion.appStringResumeWatching import com.lagradost.cloudstream3.syncproviders.AccountManager.Companion.appStringResumeWatching
import com.lagradost.cloudstream3.syncproviders.AccountManager.Companion.appStringSearch import com.lagradost.cloudstream3.syncproviders.AccountManager.Companion.appStringSearch
import com.lagradost.cloudstream3.syncproviders.AccountManager.Companion.githubApi import com.lagradost.cloudstream3.syncproviders.AccountManager.Companion.githubApi
import com.lagradost.cloudstream3.syncproviders.AccountManager.Companion.appStringSearch
import com.lagradost.cloudstream3.syncproviders.AccountManager.Companion.inAppAuths import com.lagradost.cloudstream3.syncproviders.AccountManager.Companion.inAppAuths
import com.lagradost.cloudstream3.ui.APIRepository import com.lagradost.cloudstream3.ui.APIRepository
import com.lagradost.cloudstream3.ui.WatchType import com.lagradost.cloudstream3.ui.WatchType
@ -680,6 +679,7 @@ private fun showPreviewPopupDialog(): BottomSheetDialog {
}) })
bottomPreviewPopup = ret bottomPreviewPopup = ret
return ret return ret
}
override fun onStart() { override fun onStart() {
val settingsManager = PreferenceManager.getDefaultSharedPreferences(this) val settingsManager = PreferenceManager.getDefaultSharedPreferences(this)
@ -1105,4 +1105,4 @@ private fun showPreviewPopupDialog(): BottomSheetDialog {
// } // }
} }
} }

View file

@ -478,12 +478,14 @@ class HomeFragment : Fragment() {
bookmarksUpdatedEvent += ::bookmarksUpdated bookmarksUpdatedEvent += ::bookmarksUpdated
afterPluginsLoadedEvent += ::afterPluginsLoaded afterPluginsLoadedEvent += ::afterPluginsLoaded
mainPluginsLoadedEvent += ::afterMainPluginsLoaded mainPluginsLoadedEvent += ::afterMainPluginsLoaded
reloadStoredDataEvent += ::reloadStoredEvent
} }
override fun onStop() { override fun onStop() {
bookmarksUpdatedEvent -= ::bookmarksUpdated bookmarksUpdatedEvent -= ::bookmarksUpdated
afterPluginsLoadedEvent -= ::afterPluginsLoaded afterPluginsLoadedEvent -= ::afterPluginsLoaded
mainPluginsLoadedEvent -= ::afterMainPluginsLoaded mainPluginsLoadedEvent -= ::afterMainPluginsLoaded
reloadStoredDataEvent -= ::reloadStoredEvent
super.onStop() super.onStop()
} }