aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Fennema <fennema@google.com>2023-11-09 02:41:20 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2023-11-09 02:41:20 +0000
commit6882863878294351a472c15fabc0d6ec192d42c2 (patch)
tree24a923f482dba666519942e4663bf7d5183b8e13
parentf5094dfc306da4fef4c9babd9ce10fdc95e39b44 (diff)
parent6de5720bf7df7ee03140f27d0f461b0eb9d8d00e (diff)
downloadrecovery-6882863878294351a472c15fabc0d6ec192d42c2.tar.gz
Merge "Fix removal of fastbootd logo for wear" into main am: 6de5720bf7
Original change: https://android-review.googlesource.com/c/platform/bootable/recovery/+/2823470 Change-Id: If38b9bbb823a72c8c689b39ac102cb169460ff29 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-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.