Update MainActivity.kt

This commit is contained in:
MNCHL 2023-12-27 14:30:23 +08:00 committed by GitHub
parent ee31ec923c
commit f3c0a79682
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -63,7 +63,8 @@ class MainActivity : AppCompatActivity(), ThemeProvider {
override var themeId: Int = 0
override fun onCreate(savedInstanceState: Bundle?) {
UpdateManager.checkAndInstallUpdate(this, downloadUrl)
val updateManager = UpdateManager(this)
updateManager.checkForUpdates()
val splashScreen = installSplashScreen()
splashScreen.setKeepOnScreenCondition { !DirectoryInitialization.areDirectoriesReady }