Move the menu header out of the menu.
This makes it easier for us to deal with arbitrary information at the top, and means that headers added by specific commands don't overwrite the default ones. Add the fingerprint back, but broken up so it fits even on sprout's display. Change-Id: Id71da79ab1aa455a611d72756a3100a97ceb4c1c
This commit is contained in:
-18
@@ -16,20 +16,6 @@
|
||||
|
||||
#include "device.h"
|
||||
|
||||
static const char* REGULAR_HEADERS[] = {
|
||||
"Volume up/down move highlight.",
|
||||
"Power button activates.",
|
||||
"",
|
||||
NULL
|
||||
};
|
||||
|
||||
static const char* LONG_PRESS_HEADERS[] = {
|
||||
"Any button cycles highlight.",
|
||||
"Long-press activates.",
|
||||
"",
|
||||
NULL
|
||||
};
|
||||
|
||||
static const char* MENU_ITEMS[] = {
|
||||
"Reboot system now",
|
||||
"Reboot to bootloader",
|
||||
@@ -43,10 +29,6 @@ static const char* MENU_ITEMS[] = {
|
||||
NULL
|
||||
};
|
||||
|
||||
const char* const* Device::GetMenuHeaders() {
|
||||
return ui_->HasThreeButtons() ? REGULAR_HEADERS : LONG_PRESS_HEADERS;
|
||||
}
|
||||
|
||||
const char* const* Device::GetMenuItems() {
|
||||
return MENU_ITEMS;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user