Disable update checking if not supported #147

pull/153/head
Koitharu 4 years ago
parent aaf9c6a0bf
commit ce8f57c3ca
No known key found for this signature in database
GPG Key ID: 8E861F8CE6E7CE27

@ -387,7 +387,9 @@ class MainActivity :
lifecycleScope.launch(Dispatchers.Default) {
TrackWorker.setup(applicationContext)
SuggestionsWorker.setup(applicationContext)
AppUpdateChecker(this@MainActivity).checkIfNeeded()
if (AppUpdateChecker.isUpdateSupported(this@MainActivity)) {
AppUpdateChecker(this@MainActivity).checkIfNeeded()
}
if (!get<AppSettings>().isSourcesSelected) {
withContext(Dispatchers.Main) {
OnboardDialogFragment.showWelcome(supportFragmentManager)

Loading…
Cancel
Save