mirror of
https://github.com/Evolution-X-Devices/device_google_wahoo
synced 2026-01-27 13:09:40 +00:00
wahoo: folio_daemon: PollOnce instead of PollAll
replace ALooper_pollAll with ALooper_pollOnce : * Removed in API 34 as ALooper_pollAll can swallow ALooper_wake calls. * Use ALooper_pollOnce instead.
This commit is contained in:
committed by
Asriadi Rahim
parent
32881c23bf
commit
9bead714fa
@@ -132,7 +132,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) {
|
||||
|
||||
Reference in New Issue
Block a user