From f2f5aa2e2ef8b7498e4d17d04f4cb4e79b64774a Mon Sep 17 00:00:00 2001 From: fredchiou Date: Fri, 11 Feb 2022 16:39:53 +0800 Subject: recovery_ui:Add support for multiple connectors switch Bug: 199253219 Test: display can switch in recovery Change-Id: If58ea5423f64420db3e5bd9307194b56129d6543 Merged-In: If58ea5423f64420db3e5bd9307194b56129d6543 --- recovery_ui/ui.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'recovery_ui/ui.cpp') diff --git a/recovery_ui/ui.cpp b/recovery_ui/ui.cpp index 6e67b1d4e..eb87f5261 100644 --- a/recovery_ui/ui.cpp +++ b/recovery_ui/ui.cpp @@ -341,6 +341,11 @@ int RecoveryUI::OnInputEvent(int fd, uint32_t epevents) { ProcessKey(ev.code, ev.value); } + // For Lid switch handle + if (ev.type == EV_SW) { + SetSwCallback(ev.code, ev.value); + } + return 0; } -- cgit v1.2.3