Skip to content

Commit c2d55d9

Browse files
Treehugger RobotGerrit Code Review
authored andcommitted
Merge "Change the type of displayId to int32_t" into main
2 parents b95bd3b + 43654e7 commit c2d55d9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

services/inputflinger/dispatcher/InputDispatcher.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4680,7 +4680,7 @@ InputEventInjectionResult InputDispatcher::injectInputEvent(const InputEvent* ev
46804680
const bool isPointerEvent =
46814681
isFromSource(event->getSource(), AINPUT_SOURCE_CLASS_POINTER);
46824682
// If a pointer event has no displayId specified, inject it to the default display.
4683-
const uint32_t displayId = isPointerEvent && (event->getDisplayId() == ADISPLAY_ID_NONE)
4683+
const int32_t displayId = isPointerEvent && (event->getDisplayId() == ADISPLAY_ID_NONE)
46844684
? ADISPLAY_ID_DEFAULT
46854685
: event->getDisplayId();
46864686
int32_t flags = motionEvent.getFlags();

0 commit comments

Comments
 (0)