From d91f730cbd9c56d4dece8499320ab26d8213ce78 Mon Sep 17 00:00:00 2001 From: omigamedev Date: Mon, 23 Sep 2019 00:48:25 +0200 Subject: [PATCH] export data flag, fix android create dir --- android/src/cpp/main.cpp | 1 + data/layout.xml | 14 ++++++++------ src/app_dialogs.cpp | 1 + src/node_dialog_export_ppbr.cpp | 1 + src/node_dialog_export_ppbr.h | 2 ++ src/node_panel_brush.cpp | 7 +++++-- src/node_panel_brush.h | 1 + src/util.cpp | 6 ++---- 8 files changed, 21 insertions(+), 12 deletions(-) diff --git a/android/src/cpp/main.cpp b/android/src/cpp/main.cpp index b8ab7b7..962455f 100644 --- a/android/src/cpp/main.cpp +++ b/android/src/cpp/main.cpp @@ -376,6 +376,7 @@ bool android_set_clipboard(const std::string& s) bool android_create_dir(const std::string& path) { + android_attach_jni(); jclass clazz = jni->GetObjectClass(g_engine.app->activity->clazz); jmethodID method = jni->GetMethodID(clazz, "createDir", "(Ljava/lang/String;)Z"); jstring js = JniStringFromUTF8(path); diff --git a/data/layout.xml b/data/layout.xml index 815e929..f6f0132 100644 --- a/data/layout.xml +++ b/data/layout.xml @@ -59,28 +59,30 @@