Skip to content

Commit 6ee24b6

Browse files
committed
ANDROID: pollAll is deprecated, replacing with pollOnce()
1 parent f034f2a commit 6ee24b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/platform/android/jni/runtime.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -830,7 +830,7 @@ void Runtime::pause(int timeout) {
830830
void Runtime::pollEvents(bool blocking) {
831831
int events;
832832
android_poll_source *source;
833-
ALooper_pollAll(blocking || !_hasFocus ? -1 : 0, nullptr, &events, (void **)&source);
833+
ALooper_pollOnce(blocking || !_hasFocus ? -1 : 0, nullptr, &events, (void **)&source);
834834
if (source != nullptr) {
835835
source->process(_app, source);
836836
}

0 commit comments

Comments
 (0)