Skip to content

Commit

Permalink
Fix recovery build on JB
Browse files Browse the repository at this point in the history
  • Loading branch information
turl committed Jul 26, 2012
1 parent 1d9042c commit 5390e22
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions recovery_keys.c
@@ -1,4 +1,5 @@
#include <stdio.h>
#include <string.h>

#include <linux/input.h>

Expand Down Expand Up @@ -54,7 +55,7 @@ int device_handle_key(int key_code, int visible) {
return SELECT_ITEM;

case KEY_ESC: // BACK
if (ui_menu_level > 0) {
if (!ui_root_menu) {
return GO_BACK;
}
}
Expand All @@ -73,7 +74,7 @@ int device_handle_key(int key_code, int visible) {
return SELECT_ITEM;

case KEY_HOME: // BACK
if (ui_menu_level > 0) {
if (!ui_root_menu) {
return GO_BACK;
}
}
Expand Down

0 comments on commit 5390e22

Please sign in to comment.