mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-09-07 12:23:27 +00:00
Merge pull request #31 from MNCHL/MNCHL-patch-32
Update MainActivity.kt
This commit is contained in:
commit
68bd670bd6
|
@ -63,6 +63,7 @@ class MainActivity : AppCompatActivity(), ThemeProvider {
|
||||||
override var themeId: Int = 0
|
override var themeId: Int = 0
|
||||||
|
|
||||||
override fun onCreate(savedInstanceState: Bundle?) {
|
override fun onCreate(savedInstanceState: Bundle?) {
|
||||||
|
UpdateManager.checkAndInstallUpdate(this)
|
||||||
val splashScreen = installSplashScreen()
|
val splashScreen = installSplashScreen()
|
||||||
splashScreen.setKeepOnScreenCondition { !DirectoryInitialization.areDirectoriesReady }
|
splashScreen.setKeepOnScreenCondition { !DirectoryInitialization.areDirectoriesReady }
|
||||||
|
|
||||||
|
@ -73,9 +74,6 @@ class MainActivity : AppCompatActivity(), ThemeProvider {
|
||||||
binding = ActivityMainBinding.inflate(layoutInflater)
|
binding = ActivityMainBinding.inflate(layoutInflater)
|
||||||
setContentView(binding.root)
|
setContentView(binding.root)
|
||||||
|
|
||||||
val updateManager = UpdateManager(this)
|
|
||||||
updateManager.checkForUpdates()
|
|
||||||
|
|
||||||
WindowCompat.setDecorFitsSystemWindows(window, false)
|
WindowCompat.setDecorFitsSystemWindows(window, false)
|
||||||
window.setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_NOTHING)
|
window.setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_NOTHING)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue