am 4f842f00: am a7d5ca6b: Stop errors being logged erroneously on event predispatch
* commit '4f842f0072b0dc271a93f848d080aa01fcca0643':
Stop errors being logged erroneously on event predispatch
diff --git a/ndk/sources/android/native_app_glue/android_native_app_glue.c b/ndk/sources/android/native_app_glue/android_native_app_glue.c
index 0c526fa..55a52bc 100644
--- a/ndk/sources/android/native_app_glue/android_native_app_glue.c
+++ b/ndk/sources/android/native_app_glue/android_native_app_glue.c
@@ -186,7 +186,6 @@
static void process_input(struct android_app* app, struct android_poll_source* source) {
AInputEvent* event = NULL;
- int processed = 0;
while (AInputQueue_getEvent(app->inputQueue, &event) >= 0) {
LOGV("New input event: type=%d\n", AInputEvent_getType(event));
if (AInputQueue_preDispatchEvent(app->inputQueue, event)) {
@@ -195,10 +194,6 @@
int32_t handled = 0;
if (app->onInputEvent != NULL) handled = app->onInputEvent(app, event);
AInputQueue_finishEvent(app->inputQueue, event, handled);
- processed = 1;
- }
- if (processed == 0) {
- LOGE("Failure reading next input event: %s\n", strerror(errno));
}
}