mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-07 17:15:26 +00:00
LibCore: Don't check for Core::NotificationType::None on Android
In this section on Android it seems to loop itself for some reason As a quick hack we can just not check for Core::NotificationType::None
This commit is contained in:
@@ -421,6 +421,11 @@ try_select_again:
|
||||
if (error_or_marked_fd_count.value() != 0) {
|
||||
// Handle file system notifiers by making them normal events.
|
||||
for (size_t i = 1; i < thread_data.poll_fds.size(); ++i) {
|
||||
// FIXME: Make the check work under Android, pehaps use ALooper
|
||||
#ifdef AK_OS_ANDROID
|
||||
auto& notifier = *thread_data.notifier_by_index[i];
|
||||
ThreadEventQueue::current().post_event(notifier, make<NotifierActivationEvent>(notifier.fd(), notifier.type()));
|
||||
#else
|
||||
auto& revents = thread_data.poll_fds[i].revents;
|
||||
auto& notifier = *thread_data.notifier_by_index[i];
|
||||
|
||||
@@ -436,6 +441,7 @@ try_select_again:
|
||||
type &= notifier.type();
|
||||
if (type != NotificationType::None)
|
||||
ThreadEventQueue::current().post_event(notifier, make<NotifierActivationEvent>(notifier.fd(), type));
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user