aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTao Bao2017-02-23 21:06:53 -0600
committerTao Bao2017-03-07 17:35:12 -0600
commitfc5499f22bd9b30affca08e584411012f71b6e9c (patch)
tree80131d47bb390fe5d54587e7e2257ada9725d6e8 /device.cpp
parentb7f56f9b914c9c1fa9065e9ddfc72f2c930123e1 (diff)
downloadplatform-bootable-recovery-fc5499f22bd9b30affca08e584411012f71b6e9c.tar.gz
platform-bootable-recovery-fc5499f22bd9b30affca08e584411012f71b6e9c.tar.xz
platform-bootable-recovery-fc5499f22bd9b30affca08e584411012f71b6e9c.zip
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
Diffstat (limited to 'device.cpp')
-rw-r--r--device.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/device.cpp b/device.cpp
index e717dddf..61501869 100644
--- a/device.cpp
+++ b/device.cpp
@@ -60,7 +60,7 @@ Device::BuiltinAction Device::InvokeMenuItem(int menu_position) {
60 return menu_position < 0 ? NO_ACTION : MENU_ACTIONS[menu_position]; 60 return menu_position < 0 ? NO_ACTION : MENU_ACTIONS[menu_position];
61} 61}
62 62
63int Device::HandleMenuKey(int key, int visible) { 63int Device::HandleMenuKey(int key, bool visible) {
64 if (!visible) { 64 if (!visible) {
65 return kNoAction; 65 return kNoAction;
66 } 66 }