Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8762648b authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Return the correct action for PromptAndWait" am: 99277fa6 am:...

Merge "Return the correct action for PromptAndWait" am: 99277fa6 am: c55e7fd9 am: b5d418af am: 4360c29c am: 7f269b07 am: de8e5186

Original change: https://android-review.googlesource.com/c/platform/bootable/recovery/+/1398888

Change-Id: I2c887d06b47949369159f160aa01c3c4c807bc85
parents 50af4ecd de8e5186
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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;