Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/autoload/Configs.gd
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func check_orientation():
if new_orientation != current_orientation:
current_orientation = new_orientation
orientation_changed.emit()
HandlerGUI.toogle_status_bar(new_orientation == orientation.PORTRAIT)
#HandlerGUI.toogle_status_bar(new_orientation == orientation.PORTRAIT)

const savedata_path = "user://savedata.tres"
var savedata: SaveData:
Expand Down
12 changes: 6 additions & 6 deletions src/autoload/HandlerGUI.gd
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ func _ready() -> void:
update_ui_scale()

android_runtime = Engine.get_singleton("AndroidRuntime")
set_system_bar_color(ThemeUtils.base_color, true)
toogle_status_bar(Configs.current_orientation == Configs.orientation.PORTRAIT)
#set_system_bar_color(ThemeUtils.base_color, true)
#toogle_status_bar(Configs.current_orientation == Configs.orientation.PORTRAIT)
var version = JavaClassWrapper.wrap("android.os.Build$VERSION")
if version: Configs.current_sdk = version.SDK_INT

Expand All @@ -113,10 +113,10 @@ func _ready() -> void:
get_tree().root.add_child.call_deferred(overlay_ref)
overlay_ref.add_child(tabs_panel)

func _notification(what: int) -> void:
if what == NOTIFICATION_APPLICATION_RESUMED:
if not status_bar_visible:
toogle_status_bar(false, true)
#func _notification(what: int) -> void:
#if what == NOTIFICATION_APPLICATION_RESUMED:
#if not status_bar_visible:
#toogle_status_bar(false, true)

# Drag-and-drop of files.
func _on_files_dropped(files: PackedStringArray) -> void:
Expand Down