Return the correct action for PromptAndWait
Bug: 163613552 Test: mma Change-Id: I204f6aa272c2b56725e658e5613530b27bd223c6
This commit is contained in:
parent
435a5fc0c2
commit
9ebf0653bf
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue