Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c2eb8505 authored by Siarhei Vishniakou's avatar Siarhei Vishniakou
Browse files

Expand fatal log for HOVER_MOVE

Add the entry information to the log to make it more useful.

Bug: 273376858
Test: none
Change-Id: I94aaf650acef638b9e189a6ebed1e7d92dc05cd6
parent 61608cc7
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -626,7 +626,9 @@ std::vector<TouchedWindow> getHoveringWindowsLocked(const TouchState* oldState,
            touchedWindow.targetFlags = InputTarget::Flags::DISPATCH_AS_HOVER_ENTER;
        } else {
            // This pointer was already sent to the window. Use ACTION_HOVER_MOVE.
            LOG_ALWAYS_FATAL_IF(maskedAction != AMOTION_EVENT_ACTION_HOVER_MOVE);
            if (CC_UNLIKELY(maskedAction != AMOTION_EVENT_ACTION_HOVER_MOVE)) {
                LOG(FATAL) << "Expected ACTION_HOVER_MOVE instead of " << entry.getDescription();
            }
            touchedWindow.targetFlags = InputTarget::Flags::DISPATCH_AS_IS;
        }
        touchedWindow.pointerIds.set(pointerId);