paint: fix android compile

This commit is contained in:
luboslenco
2026-04-09 10:41:00 +02:00
parent 07895f1af2
commit 4dcf64c539
+19 -19
View File
@@ -120,6 +120,25 @@ void tab_browser_go_to_cloud() {
tab_browser_hpath->text = "cloud";
}
#ifdef IRON_ANDROID
void tab_browser_go_to_disk_android_menu() {
if (ui_menu_button(tr("Download"), "", ICON_FOLDER)) {
tab_browser_hpath->text = string_copy(ui_files_default_path);
}
if (ui_menu_button(tr("Pictures"), "", ICON_FOLDER)) {
tab_browser_hpath->text = "/storage/emulated/0/Pictures";
}
if (ui_menu_button(tr("Camera"), "", ICON_FOLDER)) {
tab_browser_hpath->text = "/storage/emulated/0/DCIM/Camera";
}
if (ui_menu_button(tr("Projects"), "", ICON_FOLDER)) {
tab_browser_hpath->text = string_copy(iron_internal_save_path());
}
}
#endif
void tab_browser_go_to_disk() {
#ifdef IRON_ANDROID
ui_menu_draw(&tab_browser_go_to_disk_android_menu, -1, -1);
@@ -345,22 +364,3 @@ void tab_browser_draw(ui_handle_t *htab) {
}
}
}
#ifdef IRON_ANDROID
void tab_browser_go_to_disk_android_menu() {
if (ui_menu_button(tr("Download"), "", ICON_FOLDER)) {
tab_browser_hpath->text = string_copy(ui_files_default_path);
}
if (ui_menu_button(tr("Pictures"), "", ICON_FOLDER)) {
tab_browser_hpath->text = "/storage/emulated/0/Pictures";
}
if (ui_menu_button(tr("Camera"), "", ICON_FOLDER)) {
tab_browser_hpath->text = "/storage/emulated/0/DCIM/Camera";
}
if (ui_menu_button(tr("Projects"), "", ICON_FOLDER)) {
tab_browser_hpath->text = string_copy(iron_internal_save_path());
}
}
#endif