Merge pull request #30 from MNCHL/MNCHL-patch-31

Update MainActivity.kt
This commit is contained in:
MNCHL 2023-12-27 19:53:27 +08:00 committed by GitHub
commit 15cf5ce353
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -63,8 +63,6 @@ class MainActivity : AppCompatActivity(), ThemeProvider {
override var themeId: Int = 0
override fun onCreate(savedInstanceState: Bundle?) {
val updateManager = UpdateManager(this)
updateManager.checkForUpdates()
val splashScreen = installSplashScreen()
splashScreen.setKeepOnScreenCondition { !DirectoryInitialization.areDirectoriesReady }
@ -75,6 +73,9 @@ class MainActivity : AppCompatActivity(), ThemeProvider {
binding = ActivityMainBinding.inflate(layoutInflater)
setContentView(binding.root)
val updateManager = UpdateManager(this)
updateManager.checkForUpdates()
WindowCompat.setDecorFitsSystemWindows(window, false)
window.setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_NOTHING)