Skip to content

Commit

Permalink
-
Browse files Browse the repository at this point in the history
  • Loading branch information
aiekick committed Feb 21, 2024
1 parent 8c91524 commit d2c5670
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ option(USE_STD_FILESYSTEM "Enable std::filesystem use for path and ImGuiFileDial
option(USE_BOOST_DEMO_FILESYSTEM "Enable the demo of custom filesystem here with boost" OFF)

if (${CMAKE_SYSTEM_NAME} STREQUAL "Android")

set(USE_STD_FILESYSTEM ON CACHE BOOL "" FORCE)
endif()

if (UNIX)
Expand Down
2 changes: 1 addition & 1 deletion ImGuiFileDialog
7 changes: 4 additions & 3 deletions android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android">

<manifest xmlns:tools="http://schemas.android.com/tools"
xmlns:android="http://schemas.android.com/apk/res/android">
<application
android:label="ImGuiFileDialog_App"
android:allowBackup="false"
Expand All @@ -14,11 +14,12 @@
android:exported="true">
<meta-data android:name="android.app.lib_name"
android:value="ImGuiFileDialog_App" />

<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
<uses-permission android:name="android.permission.MANAGE_EXTERNAL_STORAGE"
tools:ignore="ScopedStorage" />
</manifest>
3 changes: 3 additions & 0 deletions mainAndroid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,9 @@ void Init(struct android_app* app)

void MainLoopStep()
{
if (!g_Initialized)
return;

ImGuiIO& io = ImGui::GetIO();
if (g_EglDisplay == EGL_NO_DISPLAY)
return;
Expand Down

0 comments on commit d2c5670

Please sign in to comment.