commit | f2f5aa2e2ef8b7498e4d17d04f4cb4e79b64774a | [log] [tgz] |
---|---|---|
author | fredchiou <fredchiou@google.com> | Fri Feb 11 16:39:53 2022 +0800 |
committer | Fred Chiou <fredchiou@google.com> | Wed Aug 31 08:36:50 2022 +0000 |
tree | 0d8d578f90276075dbca9b0945f8fb6aca92415b | |
parent | e43c5033cb5b82d9e46ee398524a8972dc87b896 [diff] [blame] |
recovery_ui:Add support for multiple connectors switch Bug: 199253219 Test: display can switch in recovery Change-Id: If58ea5423f64420db3e5bd9307194b56129d6543 Merged-In: If58ea5423f64420db3e5bd9307194b56129d6543
diff --git a/recovery_ui/ui.cpp b/recovery_ui/ui.cpp index 6e67b1d..eb87f52 100644 --- a/recovery_ui/ui.cpp +++ b/recovery_ui/ui.cpp
@@ -341,6 +341,11 @@ ProcessKey(ev.code, ev.value); } + // For Lid switch handle + if (ev.type == EV_SW) { + SetSwCallback(ev.code, ev.value); + } + return 0; }