aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Fennema <fennema@google.com>2023-11-09 02:07:01 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2023-11-09 02:07:01 +0000
commit6de5720bf7df7ee03140f27d0f461b0eb9d8d00e (patch)
tree47a568d405348a90f717dc235e36e307d5a87b43
parent0d4e8c333c665a0ff13c9430e5f01e0babe390f6 (diff)
parent4022a1deb86d5b36d12a6c59d598a63eaaa20d09 (diff)
downloadrecovery-6de5720bf7df7ee03140f27d0f461b0eb9d8d00e.tar.gz
Merge "Fix removal of fastbootd logo for wear" into main
-rw-r--r--fastboot/fastboot.cpp1
-rw-r--r--recovery_main.cpp2
-rw-r--r--recovery_ui/wear_ui.cpp1
3 files changed, 1 insertions, 3 deletions
diff --git a/fastboot/fastboot.cpp b/fastboot/fastboot.cpp
index 7806248c..42f985e4 100644
--- a/fastboot/fastboot.cpp
+++ b/fastboot/fastboot.cpp
@@ -70,6 +70,7 @@ Device::BuiltinAction StartFastboot(Device* device, const std::vector<std::strin
if (ui->IsWearable()) {
FillWearableFastbootLines(title_lines);
} else {
+ ui->SetEnableFastbootdLogo(true);
FillDefaultFastbootLines(title_lines);
}
diff --git a/recovery_main.cpp b/recovery_main.cpp
index 9a358aba..1c2b4073 100644
--- a/recovery_main.cpp
+++ b/recovery_main.cpp
@@ -485,8 +485,6 @@ int main(int argc, char** argv) {
}
}
- ui->SetEnableFastbootdLogo(fastboot);
-
auto ret = fastboot ? StartFastboot(device, args) : start_recovery(device, args);
if (ret == Device::KEY_INTERRUPTED) {
diff --git a/recovery_ui/wear_ui.cpp b/recovery_ui/wear_ui.cpp
index 309891cd..7b9ecf8e 100644
--- a/recovery_ui/wear_ui.cpp
+++ b/recovery_ui/wear_ui.cpp
@@ -42,7 +42,6 @@ WearRecoveryUI::WearRecoveryUI()
kDefaultIsScreenCircle)) {
// TODO: menu_unusable_rows_ should be computed based on the lines in draw_screen_locked().
touch_screen_allowed_ = true;
- SetEnableFastbootdLogo(false); // logo not required on Wear
}
// Draw background frame on the screen. Does not flip pages.