More android UI improvements
This commit is contained in:
parent
c083ccc1a9
commit
6921f57cfe
21 changed files with 196 additions and 104 deletions
|
|
@ -23,6 +23,7 @@
|
|||
#include "MainProgram.hpp"
|
||||
#include <SDL3/SDL_system.h>
|
||||
#include <string>
|
||||
#include <Helpers/Logger.hpp>
|
||||
#include <modules/skunicode/include/SkUnicode.h>
|
||||
#include <modules/skunicode/include/SkUnicode_icu.h>
|
||||
#include "NetThreadManager.hpp"
|
||||
|
|
@ -96,6 +97,7 @@ namespace AndroidJNICalls {
|
|||
}
|
||||
|
||||
void startNetworkService() {
|
||||
Logger::get().log("INFO", "[AndroidJNICalls::startNetworkService] Start service");
|
||||
JNIEnv* env = static_cast<JNIEnv*>(SDL_GetAndroidJNIEnv());
|
||||
jobject activity = (jobject)SDL_GetAndroidActivity();
|
||||
jclass clazz = env->GetObjectClass(activity);
|
||||
|
|
@ -106,6 +108,7 @@ namespace AndroidJNICalls {
|
|||
}
|
||||
|
||||
void stopNetworkService() {
|
||||
Logger::get().log("INFO", "[AndroidJNICalls::stopNetworkService] Stop service");
|
||||
JNIEnv* env = static_cast<JNIEnv*>(SDL_GetAndroidJNIEnv());
|
||||
jobject activity = (jobject)SDL_GetAndroidActivity();
|
||||
jclass clazz = env->GetObjectClass(activity);
|
||||
|
|
@ -342,4 +345,4 @@ Java_com_erroratline0_infinipaint_InfiniPaintNetworkService_networkServiceDestro
|
|||
NetThreadManager::get().destroy_thread();
|
||||
}
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue