diff options
author | Sen Jiang <senj@google.com> | 2016-12-14 22:50:49 +0100 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2016-12-14 22:50:49 +0100 |
commit | 8c1584feaf72c088928104ca5d4da18cba31a7cc (patch) | |
tree | eb2f2cab3101dbdba307df52910ee9d0fb8bbdf4 /ui.cpp | |
parent | Merge "updater: Fix the operator order." (diff) | |
parent | Add a stub recovery UI. (diff) | |
download | android_bootable_recovery-8c1584feaf72c088928104ca5d4da18cba31a7cc.tar android_bootable_recovery-8c1584feaf72c088928104ca5d4da18cba31a7cc.tar.gz android_bootable_recovery-8c1584feaf72c088928104ca5d4da18cba31a7cc.tar.bz2 android_bootable_recovery-8c1584feaf72c088928104ca5d4da18cba31a7cc.tar.lz android_bootable_recovery-8c1584feaf72c088928104ca5d4da18cba31a7cc.tar.xz android_bootable_recovery-8c1584feaf72c088928104ca5d4da18cba31a7cc.tar.zst android_bootable_recovery-8c1584feaf72c088928104ca5d4da18cba31a7cc.zip |
Diffstat (limited to 'ui.cpp')
-rw-r--r-- | ui.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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) { |