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

Commit 2b56f849 authored by Danesh Mondegarian's avatar Danesh Mondegarian Committed by Danesh M
Browse files

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).

Patchset 3 : Rebased

Change-Id: Ia9b2f396fc95c7972a5a5580e1a50adf4af26060
parent b69886a6
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -950,7 +950,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();
    }