use the default recovery UI
The key handling we use for tilapia is now the recovery default; we no
longer need a subclass of ScreenRecoveryUI.
Change-Id: I1387f6759354d6349dbc7896c7a9682b00d8cbfe
diff --git a/recovery/recovery_ui.cpp b/recovery/recovery_ui.cpp
index acb6a92..5924ec9 100644
--- a/recovery/recovery_ui.cpp
+++ b/recovery/recovery_ui.cpp
@@ -34,36 +34,10 @@
"wipe cache partition",
NULL };
-class TilapiaUI : public ScreenRecoveryUI {
- public:
- TilapiaUI() :
- consecutive_power_keys(0) {
- }
-
- virtual KeyAction CheckKey(int key) {
- if (IsKeyPressed(KEY_POWER) && key == KEY_VOLUMEUP) {
- return TOGGLE;
- }
- if (key == KEY_POWER) {
- ++consecutive_power_keys;
- if (consecutive_power_keys >= 7) {
- return REBOOT;
- }
- } else {
- consecutive_power_keys = 0;
- }
- return ENQUEUE;
- }
-
- private:
- int consecutive_power_keys;
-};
-
-
class TilapiaDevice : public Device {
public:
TilapiaDevice() :
- ui(new TilapiaUI) {
+ ui(new ScreenRecoveryUI) {
}
RecoveryUI* GetUI() { return ui; }