Recovery : Show menu if in non user initiated mode and error occurred

When using rom manager and applying a zip, if one encounters an error in recovery,
they're left on a screen with no visible controls (Forcing to hard reset phone).

Change-Id: Ia9b2f396fc95c7972a5a5580e1a50adf4af26060
This commit is contained in:
Danesh Mondegarian 2011-10-11 16:52:23 -04:00 committed by Koushik Dutta
parent aa3c3d429b
commit 5617056cb8

View File

@ -903,7 +903,10 @@ main(int argc, char **argv) {
}
}
if (status != INSTALL_SUCCESS && !is_user_initiated_recovery) ui_set_background(BACKGROUND_ICON_ERROR);
if (status != INSTALL_SUCCESS && !is_user_initiated_recovery) {
ui_set_show_text(1);
ui_set_background(BACKGROUND_ICON_ERROR);
}
if (status != INSTALL_SUCCESS || ui_text_visible()) {
prompt_and_wait();
}