summaryrefslogtreecommitdiffstats
path: root/default_recovery_ui.c
diff options
context:
space:
mode:
authorDoug Zongker <dougz@android.com>2009-06-11 23:54:41 +0200
committerDoug Zongker <dougz@android.com>2009-06-11 23:57:53 +0200
commitcbb91293450f893be80edd30a3dbe21566181af5 (patch)
treed19a5bb71f9a3a12c6f24f3cb06c2721cae29e07 /default_recovery_ui.c
parentsplit out device-specific recovery UI code into vendor directories (diff)
downloadandroid_bootable_recovery-cbb91293450f893be80edd30a3dbe21566181af5.tar
android_bootable_recovery-cbb91293450f893be80edd30a3dbe21566181af5.tar.gz
android_bootable_recovery-cbb91293450f893be80edd30a3dbe21566181af5.tar.bz2
android_bootable_recovery-cbb91293450f893be80edd30a3dbe21566181af5.tar.lz
android_bootable_recovery-cbb91293450f893be80edd30a3dbe21566181af5.tar.xz
android_bootable_recovery-cbb91293450f893be80edd30a3dbe21566181af5.tar.zst
android_bootable_recovery-cbb91293450f893be80edd30a3dbe21566181af5.zip
Diffstat (limited to 'default_recovery_ui.c')
-rw-r--r--default_recovery_ui.c36
1 files changed, 18 insertions, 18 deletions
diff --git a/default_recovery_ui.c b/default_recovery_ui.c
index 7bc5f2c40..76fa43ea9 100644
--- a/default_recovery_ui.c
+++ b/default_recovery_ui.c
@@ -30,32 +30,32 @@ char* MENU_ITEMS[] = { "reboot system now",
NULL };
int device_toggle_display(char* key_pressed, int key_code) {
- return key_code == KEY_HOME;
+ return key_code == KEY_HOME;
}
int device_reboot_now(char* key_pressed, int key_code) {
- return 0;
+ return 0;
}
int device_handle_key(int key_code, int visible) {
- if (visible) {
- switch (key_code) {
- case KEY_DOWN:
- case KEY_VOLUMEDOWN:
- return HIGHLIGHT_DOWN;
-
- case KEY_UP:
- case KEY_VOLUMEUP:
- return HIGHLIGHT_UP;
-
- case KEY_ENTER:
- return SELECT_ITEM;
+ if (visible) {
+ switch (key_code) {
+ case KEY_DOWN:
+ case KEY_VOLUMEDOWN:
+ return HIGHLIGHT_DOWN;
+
+ case KEY_UP:
+ case KEY_VOLUMEUP:
+ return HIGHLIGHT_UP;
+
+ case KEY_ENTER:
+ return SELECT_ITEM;
+ }
}
- }
- return NO_ACTION;
+ return NO_ACTION;
}
-void device_perform_action(int which) {
- // none defined
+int device_perform_action(int which) {
+ return which;
}