Merge pull request #28 from MNCHL/MNCHL-patch-29

Update MainActivity.kt
This commit is contained in:
MNCHL 2023-12-27 14:30:36 +08:00 committed by GitHub
commit 83fd0fdf5b
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 }