recovery: Move a few int to bool.

Most of the changes are trivial.

Also update a dead reference to device_handle_key() in device.h comment,
and add some comments to get_menu_selection() function.

Test: `mmma bootable/recovery`
Change-Id: I59ef9213ec88ab35c0e7b8a7813ccf9c56dbd5c5
This commit is contained in:
Tao Bao
2017-03-07 15:35:12 -08:00
parent b7f56f9b91
commit fc5499f22b
3 changed files with 140 additions and 145 deletions
+1 -1
View File
@@ -60,7 +60,7 @@ Device::BuiltinAction Device::InvokeMenuItem(int menu_position) {
return menu_position < 0 ? NO_ACTION : MENU_ACTIONS[menu_position];
}
int Device::HandleMenuKey(int key, int visible) {
int Device::HandleMenuKey(int key, bool visible) {
if (!visible) {
return kNoAction;
}