From 48d5c1cc61a7874100d11b5912dab1e3bd298980 Mon Sep 17 00:00:00 2001 From: pix106 Date: Thu, 12 Oct 2023 18:14:00 +0200 Subject: [PATCH] sdm660-common: folio_daemon: adapt to Android 14 replace ALooper_pollAll with ALooper_pollOnce : * Removed in API 34 as ALooper_pollAll can swallow ALooper_wake calls. * Use ALooper_pollOnce instead. --- folio_daemon/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/folio_daemon/main.cpp b/folio_daemon/main.cpp index 1cda1ce5..c4cec0b1 100644 --- a/folio_daemon/main.cpp +++ b/folio_daemon/main.cpp @@ -130,7 +130,7 @@ int main(void) { ALOGI("Starting polling loop"); // Polling loop - while (ALooper_pollAll(-1, NULL, NULL, NULL) == 0) { + while (ALooper_pollOnce(-1, NULL, NULL, NULL) == 0) { int eventCount = 0; ASensorEvent sensorEvent; while (ASensorEventQueue_getEvents(eventQueue, &sensorEvent, 1) > 0) {