mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-15 18:28:42 +07:00
@SomeTroglodyte
initialize() calls useImmersiveMode() internally, which would override the system ui visibility we manually set, leading to setting effectively being ignored on startup Also, we can use LibGDX's builting function, which is more future-proof :)
This commit is contained in:
@ -33,13 +33,12 @@ open class AndroidLauncher : AndroidApplication() {
|
||||
UncivFiles.saverLoader = AndroidSaverLoader(this)
|
||||
UncivFiles.preferExternalStorage = true
|
||||
|
||||
val config = AndroidApplicationConfiguration().apply { useImmersiveMode = false }
|
||||
val settings = UncivFiles.getSettingsForPlatformLaunchers(filesDir.path)
|
||||
val config = AndroidApplicationConfiguration().apply { useImmersiveMode = settings.androidHideSystemUi }
|
||||
|
||||
// Setup orientation, immersive mode and display cutout
|
||||
displayImpl.setOrientation(settings.displayOrientation)
|
||||
displayImpl.setCutoutFromUiThread(settings.androidCutout)
|
||||
displayImpl.setSystemUiVisibilityFromUiThread(settings.androidHideSystemUi)
|
||||
|
||||
// Create notification channels for Multiplayer notificator
|
||||
MultiplayerTurnCheckWorker.createNotificationChannels(applicationContext)
|
||||
|
Reference in New Issue
Block a user