aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorElliott Hughes2015-04-10 14:47:46 -0500
committerElliott Hughes2015-04-10 14:47:46 -0500
commit642aaa7a3e11b2de719fc9decc45174bcc235c0c (patch)
tree7e8d33676678e2240d5368fca8465712b24285cd /screen_ui.h
parent6b0dd1d7e1e1f3645230f880db95cad1279a826b (diff)
downloadplatform-bootable-recovery-642aaa7a3e11b2de719fc9decc45174bcc235c0c.tar.gz
platform-bootable-recovery-642aaa7a3e11b2de719fc9decc45174bcc235c0c.tar.xz
platform-bootable-recovery-642aaa7a3e11b2de719fc9decc45174bcc235c0c.zip
Fix ScreenRecoveryUI to handle devices without power/up/down.
Currently fugu has a custom subclass to handle this. The default code supports devices with trackballs but not all shipping Nexus devices? That's just silly. Change-Id: Id2779c91284899a26b4bb1af41e7033aa889df10
Diffstat (limited to 'screen_ui.h')
-rw-r--r--screen_ui.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/screen_ui.h b/screen_ui.h
index 41ff4af1..ea1a95be 100644
--- a/screen_ui.h
+++ b/screen_ui.h
@@ -56,10 +56,12 @@ class ScreenRecoveryUI : public RecoveryUI {
56 int SelectMenu(int sel); 56 int SelectMenu(int sel);
57 void EndMenu(); 57 void EndMenu();
58 58
59 void KeyLongPress(int);
60
59 void Redraw(); 61 void Redraw();
60 62
61 enum UIElement { HEADER, MENU, MENU_SEL_BG, MENU_SEL_FG, LOG, TEXT_FILL }; 63 enum UIElement { HEADER, MENU, MENU_SEL_BG, MENU_SEL_BG_ACTIVE, MENU_SEL_FG, LOG, TEXT_FILL };
62 virtual void SetColor(UIElement e); 64 void SetColor(UIElement e);
63 65
64 private: 66 private:
65 Icon currentIcon; 67 Icon currentIcon;