mirror of
https://github.com/recloudstream/cloudstream.git
synced 2024-08-15 01:53:11 +00:00
reloadStoredEvent
This commit is contained in:
parent
4dd205c549
commit
2363aadc5a
2 changed files with 4 additions and 2 deletions
|
@ -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 {
|
||||||
// }
|
// }
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -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()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue