diff options
author | codeworkx <daniel.hillenbrand@codeworkx.de> | 2011-07-20 14:30:30 +0200 |
---|---|---|
committer | codeworkx <daniel.hillenbrand@codeworkx.de> | 2011-07-20 14:30:30 +0200 |
commit | 189053798cf8c2d70a2258cdbb99931372c3a223 (patch) | |
tree | f946e26b9421a365fbe7649e572716fd7739badd /recovery | |
parent | 133339f02c9f598a7ac21f595de7ca867da2ad5c (diff) | |
download | device_samsung_galaxysmtd-189053798cf8c2d70a2258cdbb99931372c3a223.zip device_samsung_galaxysmtd-189053798cf8c2d70a2258cdbb99931372c3a223.tar.gz device_samsung_galaxysmtd-189053798cf8c2d70a2258cdbb99931372c3a223.tar.bz2 |
recovery: don't allow power button to toggle display
Change-Id: I966990da04a4ed8f28d1fb7b35fde74ccc998f5f
Diffstat (limited to 'recovery')
-rw-r--r-- | recovery/recovery_ui.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/recovery/recovery_ui.c b/recovery/recovery_ui.c index b37d6a0..67f6b85 100644 --- a/recovery/recovery_ui.c +++ b/recovery/recovery_ui.c @@ -46,7 +46,7 @@ int device_toggle_display(volatile char* key_pressed, int key_code) { return 0; //return get_allow_toggle_display() && (key_code == KEY_HOME || key_code == KEY_MENU || key_code == KEY_END); } - return get_allow_toggle_display() && (key_code == KEY_POWER || key_code == KEY_END); + return get_allow_toggle_display() && (key_code == KEY_MENU || key_code == KEY_BACK); } int device_reboot_now(volatile char* key_pressed, int key_code) { @@ -88,7 +88,7 @@ int device_handle_key(int key_code, int visible) { case KEY_BACKSPACE: case KEY_SEARCH: case KEY_BACK: - return GO_BACK; + return NO_ACTION; } } |