Skip to content

Commit 65155e0

Browse files
committed
Fix android code
1 parent 67a561e commit 65155e0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/KDGui/platform/android/android_platform_event_loop.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ AndroidPlatformEventLoop::AndroidPlatformEventLoop(AndroidPlatformIntegration *a
9898
void AndroidPlatformEventLoop::waitForEventsImpl(int timeout)
9999
{
100100
android_poll_source *source;
101-
if (ALooper_pollAll(timeout, nullptr, nullptr, (void **)&source) >= 0) {
101+
if (ALooper_pollOnce(timeout, nullptr, nullptr, (void **)&source) >= 0) {
102102
if (source != nullptr)
103103
source->process(AndroidPlatformIntegration::s_androidApp, source);
104104
}

src/KDGui/platform/android/android_platform_integration.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ void android_main(struct android_app *app)
157157
KDGui::AndroidPlatformIntegration::s_androidApp = app;
158158
android_poll_source *source;
159159
do {
160-
if (ALooper_pollAll(0, nullptr, nullptr, (void **)&source) >= 0) {
160+
if (ALooper_pollOnce(0, nullptr, nullptr, (void **)&source) >= 0) {
161161
if (source != nullptr)
162162
source->process(app, source);
163163
}

0 commit comments

Comments
 (0)