summaryrefslogtreecommitdiffstats
path: root/recovery_ui/ui.cpp
diff options
context:
space:
mode:
authorfredchiou <fredchiou@google.com>2022-02-11 09:39:53 +0100
committerFred Chiou <fredchiou@google.com>2022-08-29 15:16:29 +0200
commitb44702a80ae8efcb3090aa6a4331ec3d93e04f10 (patch)
treef6418cc64f5dc79db3c8b1bb715fdc020b8fe30b /recovery_ui/ui.cpp
parentMerge "Update static libs deps in recovery" (diff)
downloadandroid_bootable_recovery-b44702a80ae8efcb3090aa6a4331ec3d93e04f10.tar
android_bootable_recovery-b44702a80ae8efcb3090aa6a4331ec3d93e04f10.tar.gz
android_bootable_recovery-b44702a80ae8efcb3090aa6a4331ec3d93e04f10.tar.bz2
android_bootable_recovery-b44702a80ae8efcb3090aa6a4331ec3d93e04f10.tar.lz
android_bootable_recovery-b44702a80ae8efcb3090aa6a4331ec3d93e04f10.tar.xz
android_bootable_recovery-b44702a80ae8efcb3090aa6a4331ec3d93e04f10.tar.zst
android_bootable_recovery-b44702a80ae8efcb3090aa6a4331ec3d93e04f10.zip
Diffstat (limited to 'recovery_ui/ui.cpp')
-rw-r--r--recovery_ui/ui.cpp5
1 files changed, 5 insertions, 0 deletions
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;
}