Skip to content

Commit 43654e7

Browse files
author
Linnan Li
committed
Change the type of displayId to int32_t
Change the type of the displayId declaration for the Motion event during injection to int32_t. Bug: none Test: build Change-Id: I3526893773c534aa1a0b87137f38d702a69e05ab
1 parent b95bd3b commit 43654e7

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)