Rollback android save onstop change for now
This commit is contained in:
parent
35d2a03406
commit
c07871337c
14 changed files with 19 additions and 48 deletions
|
|
@ -49,7 +49,6 @@ jstring string2jstring(JNIEnv* env, const std::string& s) {
|
|||
|
||||
namespace AndroidJNICalls {
|
||||
InputManager* globalInputManager;
|
||||
std::mutex globalMutex;
|
||||
|
||||
std::mutex textboxMutex;
|
||||
CustomEvents::InputTextBoxID textboxID = 0;
|
||||
|
|
@ -346,12 +345,4 @@ Java_com_erroratline0_infinipaint_InfiniPaintNetworkService_networkServiceDestro
|
|||
NetThreadManager::get().destroy_thread();
|
||||
}
|
||||
|
||||
extern "C"
|
||||
JNIEXPORT void JNICALL
|
||||
Java_com_erroratline0_infinipaint_InfiniPaint_androidOnStop(JNIEnv *env, jclass clazz) {
|
||||
std::scoped_lock a{globalMutex};
|
||||
if(AndroidJNICalls::globalInputManager)
|
||||
AndroidJNICalls::globalInputManager->main.input_android_on_stop_callback();
|
||||
}
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue