-
Notifications
You must be signed in to change notification settings - Fork 483
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GitHub account #128
GitHub account #128
Conversation
added GithubApi in SettingsAccount.kt
# Conflicts: # app/src/main/java/com/lagradost/cloudstream3/utils/BackupUtils.kt
Looks good, @LagradOst ? Is there anything missing or incomplete? I can help if there's anything 🙏 |
The main functions (backupGithub & restorePromptGithub) are working for me, |
Can you explain how it works in layman terms? |
hm. it still doesnt seem to properly push the settings to the gist |
To make the home page refresh you can do the following:
in the onstop and onresume in homefragment.kt inlude the new method like the following override fun onResume() {
super.onResume()
reloadStored()
afterPluginsLoadedEvent += ::firstLoadHomePage
mainPluginsLoadedEvent += ::firstLoadHomePage
reloadStoredDataEvent += ::reloadStoredEvent
}
override fun onStop() {
afterPluginsLoadedEvent -= ::firstLoadHomePage
mainPluginsLoadedEvent -= ::firstLoadHomePage
reloadStoredDataEvent -= ::reloadStoredEvent
super.onStop()
}
private fun reloadStoredEvent(input: Unit) {
reloadStored()
} Now you can call |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
works perfectly for me
closed but why? |
No description provided.