SDL: Use ALooper_pollOnce() instead of ALooper_pollAll()

From 558630d59c2db73ac7c0c0cae000e4bee6ef42cf Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Thu, 16 May 2024 07:53:18 -0700
Subject: [PATCH] Use ALooper_pollOnce() instead of ALooper_pollAll()

The structure of the existing loop makes the inner loop of the previous commit unnecessary.
---
 src/sensor/android/SDL_androidsensor.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/sensor/android/SDL_androidsensor.c b/src/sensor/android/SDL_androidsensor.c
index eb46dd5e046a3..5b5867147590e 100644
--- a/src/sensor/android/SDL_androidsensor.c
+++ b/src/sensor/android/SDL_androidsensor.c
@@ -70,7 +70,7 @@ static int SDLCALL SDL_ANDROID_SensorThread(void *data)
     while (SDL_AtomicGet(&ctx->running)) {
         Uint64 timestamp = SDL_GetTicksNS();
 
-        if (ALooper_pollAll(-1, NULL, &events, (void **)&source) == LOOPER_ID_USER) {
+        if (ALooper_pollOnce(-1, NULL, &events, (void **)&source) == LOOPER_ID_USER) {
             SDL_LockSensors();
             for (i = 0; i < SDL_sensors_count; ++i) {
                 if (!SDL_sensors[i].event_queue) {