summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTreehugger Robot <treehugger-gerrit@google.com>2020-08-18 06:15:03 +0200
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2020-08-18 06:15:03 +0200
commitde8e51866858316310f13eba27cce363c082871b (patch)
treec927227a33bd0c156326dd91e0b79b6a9b9185f5
parent[automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: f81364cd8c -s ours am: f810978038 -s ours am: 59274b4765 -s ours (diff)
parentMerge "Return the correct action for PromptAndWait" am: 99277fa6af am: c55e7fd95d am: b5d418af52 am: 4360c29cf7 (diff)
downloadandroid_bootable_recovery-de8e51866858316310f13eba27cce363c082871b.tar
android_bootable_recovery-de8e51866858316310f13eba27cce363c082871b.tar.gz
android_bootable_recovery-de8e51866858316310f13eba27cce363c082871b.tar.bz2
android_bootable_recovery-de8e51866858316310f13eba27cce363c082871b.tar.lz
android_bootable_recovery-de8e51866858316310f13eba27cce363c082871b.tar.xz
android_bootable_recovery-de8e51866858316310f13eba27cce363c082871b.tar.zst
android_bootable_recovery-de8e51866858316310f13eba27cce363c082871b.zip
-rw-r--r--recovery.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/recovery.cpp b/recovery.cpp
index 84deeb45f..36924fbdf 100644
--- a/recovery.cpp
+++ b/recovery.cpp
@@ -421,15 +421,15 @@ static Device::BuiltinAction PromptAndWait(Device* device, InstallResult status)
case Device::REBOOT:
case Device::SHUTDOWN:
if (!ui->IsTextVisible()) {
- return Device::REBOOT;
+ return chosen_action;
}
// okay to reboot; no need to ask.
if (!update_in_progress) {
- return Device::REBOOT;
+ return chosen_action;
}
// An update might have been failed. Ask if user really wants to reboot.
if (AskToReboot(device, chosen_action)) {
- return Device::REBOOT;
+ return chosen_action;
}
break;