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

Skip to content
Commit 6773db6d authored by Siarhei Vishniakou's avatar Siarhei Vishniakou
Browse files

Validate events before printing them

Before this patch, enabling the injection logs would cause a crash when
running inputflinger_tests. This happened because the events were
getting printed prior to getting checked for validity.

To fix this, move the check to the beginning of the function.

Test: m inputflinger_tests && $ANDROID_HOST_OUT/nativetest64/inputflinger_tests/inputflinger_tests
Bug: 274073185
Merged-In: I8c92e47133e0eea55186be049434bdfd5c0348ff
Change-Id: I8c92e47133e0eea55186be049434bdfd5c0348ff
parent 8aedbf30
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment