You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-10 13:00:37 +00:00
Android: Add option to change background color and fix system bar regression
This commit is contained in:
@@ -324,12 +324,13 @@ abstract class BaseGodotEditor : GodotActivity(), GameMenuFragment.GameMenuListe
|
||||
}
|
||||
}
|
||||
|
||||
private fun updateImmersiveAndEdgeToEdgeModes() {
|
||||
private fun updateWindowAppearance() {
|
||||
val editorWindowInfo = getEditorWindowInfo()
|
||||
if (editorWindowInfo == EDITOR_MAIN_INFO || editorWindowInfo == RUN_GAME_INFO) {
|
||||
godot?.apply {
|
||||
enableImmersiveMode(isInImmersiveMode(), true)
|
||||
enableEdgeToEdge(isInEdgeToEdgeMode(), true)
|
||||
setSystemBarsAppearance()
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -339,13 +340,13 @@ abstract class BaseGodotEditor : GodotActivity(), GameMenuFragment.GameMenuListe
|
||||
runOnUiThread {
|
||||
// Hide the loading indicator
|
||||
editorLoadingIndicator?.visibility = View.GONE
|
||||
updateImmersiveAndEdgeToEdgeModes()
|
||||
updateWindowAppearance()
|
||||
}
|
||||
}
|
||||
|
||||
override fun onResume() {
|
||||
super.onResume()
|
||||
updateImmersiveAndEdgeToEdgeModes()
|
||||
updateWindowAppearance()
|
||||
|
||||
if (getEditorWindowInfo() == EDITOR_MAIN_INFO &&
|
||||
godot?.isEditorHint() == true &&
|
||||
|
||||
Reference in New Issue
Block a user