diff --git a/build.gradle b/build.gradle index 79efdebd..0a29f939 100644 --- a/build.gradle +++ b/build.gradle @@ -58,7 +58,7 @@ task "generatePngs"() { android { namespace "org.meumeu.wivrn" - ndkVersion "26.1.10909125" + ndkVersion "27.1.12297006" defaultConfig { applicationId "org.meumeu.wivrn" diff --git a/client/application.cpp b/client/application.cpp index 29fe3388..96451f3e 100644 --- a/client/application.cpp +++ b/client/application.cpp @@ -1151,7 +1151,7 @@ void application::run() struct android_poll_source * source; // TODO signal with a file descriptor instead of a 100ms timeout - while (ALooper_pollAll(100, nullptr, &events, (void **)&source) >= 0) + while (ALooper_pollOnce(100, nullptr, &events, (void **)&source) >= 0) { // Process this event. if (source != nullptr) diff --git a/client/main.cpp b/client/main.cpp index 996572e9..d542f720 100644 --- a/client/main.cpp +++ b/client/main.cpp @@ -97,7 +97,7 @@ void real_main() int events; struct android_poll_source * source; - while (ALooper_pollAll(100, nullptr, &events, (void **)&source) >= 0) + while (ALooper_pollOnce(100, nullptr, &events, (void **)&source) >= 0) { // Process this event. if (source != nullptr)