mirror of
https://github.com/recloudstream/cloudstream.git
synced 2024-08-15 01:53:11 +00:00
restorePromptGithub on onStart()
This commit is contained in:
parent
105b03f4a1
commit
9b835f6627
1 changed files with 9 additions and 4 deletions
|
@ -503,6 +503,15 @@ class MainActivity : AppCompatActivity(), ColorPickerDialogListener {
|
|||
}
|
||||
}
|
||||
|
||||
override fun onStart() {
|
||||
val settingsManager = PreferenceManager.getDefaultSharedPreferences(this)
|
||||
super.onStart()
|
||||
ioSafe {
|
||||
if (githubApi.getLatestLoginData() != null && settingsManager.getBoolean(getString(R.string.automatic_cloud_backups), true)){
|
||||
context?.restorePromptGithub()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
override fun onCreate(savedInstanceState: Bundle?) {
|
||||
app.initClient(this)
|
||||
|
@ -607,10 +616,6 @@ class MainActivity : AppCompatActivity(), ColorPickerDialogListener {
|
|||
logError(e)
|
||||
}
|
||||
}
|
||||
|
||||
if (githubApi.getLatestLoginData() != null && settingsManager.getBoolean(getString(R.string.automatic_cloud_backups), true)){
|
||||
context?.restorePromptGithub()
|
||||
}
|
||||
}
|
||||
|
||||
SearchResultBuilder.updateCache(this)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue