use the default recovery UI
The key handling we use for mako is now the recovery default; we no
longer need a subclass of ScreenRecoveryUI.
Change-Id: Ic60d4ee76a13839547f4fda83a7c1a59a178f505
diff --git a/recovery/recovery_ui.cpp b/recovery/recovery_ui.cpp
index c13f5c9..342c0e7 100644
--- a/recovery/recovery_ui.cpp
+++ b/recovery/recovery_ui.cpp
@@ -34,37 +34,11 @@
"wipe cache partition",
NULL };
-class MakoUI : public ScreenRecoveryUI
-{
-public:
- MakoUI() :
- 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 MakoDevice : public Device
{
public:
MakoDevice() :
- ui(new MakoUI) {
+ ui(new ScreenRecoveryUI) {
}
RecoveryUI* GetUI() { return ui; }