SDL: Revert changes to SDL_androidsensor.c

From 027856b9fa4d1574627ff9424b27a39f11b9f5ca Mon Sep 17 00:00:00 2001
From: Anonymous Maarten <[EMAIL REDACTED]>
Date: Thu, 16 May 2024 16:47:25 +0200
Subject: [PATCH] Revert changes to SDL_androidsensor.c

---
 src/sensor/android/SDL_androidsensor.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

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