fix anr bug

Signed-off-by: l00574490 <liuqi149@huawei.com>
This commit is contained in:
l00574490
2022-09-30 17:13:03 +08:00
parent ad120c52f9
commit 51336d4f1e
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -60,6 +60,7 @@ void InputEventListener::OnInputEvent(std::shared_ptr<MMI::PointerEvent> pointer
auto channel = InputTransferStation::GetInstance().GetInputChannel(windowId);
if (channel == nullptr) {
WLOGFE("WindowInputChannel is nullptr");
pointerEvent->MarkProcessed();
return;
}
channel->HandlePointerEvent(pointerEvent);
+1
View File
@@ -2288,6 +2288,7 @@ void WindowImpl::ConsumePointerEvent(std::shared_ptr<MMI::PointerEvent>& pointer
(void)uiContent_->ProcessPointerEvent(pointerEvent);
} else {
WLOGE("pointerEvent is not consumed, windowId: %{public}u", GetWindowId());
pointerEvent->MarkProcessed();
}
}