Update Android Dependencies, use maplibre-gestures-android (#2714)

This commit is contained in:
Bart Louwers
2024-08-19 21:08:18 +02:00
committed by GitHub
parent ac606a1af2
commit c3a2fa247c
25 changed files with 97 additions and 108 deletions

View File

@@ -35,7 +35,10 @@ void android_main(struct android_app* app) {
int finishedTestCount = 0;
std::function<void()> testStatus = [&]() {
ALooper_pollAll(0, &outFd, &outEvents, reinterpret_cast<void**>(&source));
auto result = ALooper_pollOnce(0, &outFd, &outEvents, reinterpret_cast<void**>(&source));
if (result == ALOOPER_POLL_ERROR) {
throw std::runtime_error("ALooper_pollOnce returned an error");
}
if (source != nullptr) {
source->process(app, source);
@@ -56,7 +59,10 @@ void android_main(struct android_app* app) {
changeState(env, app, result);
}
while (true) {
ALooper_pollAll(0, &outFd, &outEvents, reinterpret_cast<void**>(&source));
auto result = ALooper_pollOnce(0, &outFd, &outEvents, reinterpret_cast<void**>(&source));
if (result == ALOOPER_POLL_ERROR) {
throw std::runtime_error("ALooper_pollOnce returned an error");
}
if (source != nullptr) {
source->process(app, source);