Disable update checking if not supported #147
This commit is contained in:
@@ -387,7 +387,9 @@ class MainActivity :
|
|||||||
lifecycleScope.launch(Dispatchers.Default) {
|
lifecycleScope.launch(Dispatchers.Default) {
|
||||||
TrackWorker.setup(applicationContext)
|
TrackWorker.setup(applicationContext)
|
||||||
SuggestionsWorker.setup(applicationContext)
|
SuggestionsWorker.setup(applicationContext)
|
||||||
AppUpdateChecker(this@MainActivity).checkIfNeeded()
|
if (AppUpdateChecker.isUpdateSupported(this@MainActivity)) {
|
||||||
|
AppUpdateChecker(this@MainActivity).checkIfNeeded()
|
||||||
|
}
|
||||||
if (!get<AppSettings>().isSourcesSelected) {
|
if (!get<AppSettings>().isSourcesSelected) {
|
||||||
withContext(Dispatchers.Main) {
|
withContext(Dispatchers.Main) {
|
||||||
OnboardDialogFragment.showWelcome(supportFragmentManager)
|
OnboardDialogFragment.showWelcome(supportFragmentManager)
|
||||||
|
|||||||
Reference in New Issue
Block a user