summaryrefslogtreecommitdiffstats
path: root/ui.cpp
diff options
context:
space:
mode:
authorSen Jiang <senj@google.com>2016-12-14 23:00:44 +0100
committerandroid-build-merger <android-build-merger@google.com>2016-12-14 23:00:44 +0100
commit2f8f6ec0fc2af4d4afd7d19837442222a1342156 (patch)
treeeb2f2cab3101dbdba307df52910ee9d0fb8bbdf4 /ui.cpp
parentMerge "updater: Fix the operator order." (diff)
parentMerge "Add a stub recovery UI." (diff)
downloadandroid_bootable_recovery-2f8f6ec0fc2af4d4afd7d19837442222a1342156.tar
android_bootable_recovery-2f8f6ec0fc2af4d4afd7d19837442222a1342156.tar.gz
android_bootable_recovery-2f8f6ec0fc2af4d4afd7d19837442222a1342156.tar.bz2
android_bootable_recovery-2f8f6ec0fc2af4d4afd7d19837442222a1342156.tar.lz
android_bootable_recovery-2f8f6ec0fc2af4d4afd7d19837442222a1342156.tar.xz
android_bootable_recovery-2f8f6ec0fc2af4d4afd7d19837442222a1342156.tar.zst
android_bootable_recovery-2f8f6ec0fc2af4d4afd7d19837442222a1342156.zip
Diffstat (limited to 'ui.cpp')
-rw-r--r--ui.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/ui.cpp b/ui.cpp
index 78b6e4f1b..2d80c382f 100644
--- a/ui.cpp
+++ b/ui.cpp
@@ -80,12 +80,13 @@ static void* InputThreadLoop(void*) {
return nullptr;
}
-void RecoveryUI::Init() {
+bool RecoveryUI::Init() {
ev_init(InputCallback, this);
ev_iterate_available_keys(std::bind(&RecoveryUI::OnKeyDetected, this, std::placeholders::_1));
pthread_create(&input_thread_, nullptr, InputThreadLoop, nullptr);
+ return true;
}
int RecoveryUI::OnInputEvent(int fd, uint32_t epevents) {