aboutsummaryrefslogtreecommitdiffstats
path: root/recovery.cpp
diff options
context:
space:
mode:
authorDoug Zongker <dougz@android.com>2011-11-01 11:00:20 -0700
committerDoug Zongker <dougz@android.com>2011-11-01 11:04:27 -0700
commita4e88e45de998520ec0fcc698c74968070b506bb (patch)
tree972dd38e1d522893cd8b7f5ffc280fc56ffc7449 /recovery.cpp
parent5e12cc31f0674d7f42e5925784ada0b00a99a418 (diff)
downloadbootable_recovery-a4e88e45de998520ec0fcc698c74968070b506bb.zip
bootable_recovery-a4e88e45de998520ec0fcc698c74968070b506bb.tar.gz
bootable_recovery-a4e88e45de998520ec0fcc698c74968070b506bb.tar.bz2
move key processing to RecoveryUI
Move the key for handling keys from ScreenRecoveryUI to RecoveryUI, so it can be used by devices without screens. Remove the UIParameters struct and replace it with some new member variables in ScreenRecoveryUI. Change-Id: I4c0e659edcbedc0b9e86ed261ae4dbb3c6097414
Diffstat (limited to 'recovery.cpp')
-rw-r--r--recovery.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/recovery.cpp b/recovery.cpp
index d028cc9..a0d96d2 100644
--- a/recovery.cpp
+++ b/recovery.cpp
@@ -61,8 +61,6 @@ static const char *TEMPORARY_LOG_FILE = "/tmp/recovery.log";
static const char *TEMPORARY_INSTALL_FILE = "/tmp/last_install";
static const char *SIDELOAD_TEMP_DIR = "/tmp/sideload";
-extern UIParameters ui_parameters; // from ui.c
-
RecoveryUI* ui = NULL;
/*
@@ -745,7 +743,7 @@ main(int argc, char **argv) {
ui = device->GetUI();
ui->Init();
- ui->SetBackground(RecoveryUI::INSTALLING);
+ ui->SetBackground(RecoveryUI::NONE);
load_volume_table();
get_args(&argc, &argv);