diff options
Diffstat (limited to 'recovery.cpp')
| -rw-r--r-- | recovery.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/recovery.cpp b/recovery.cpp index 28064ecc..3738ecc4 100644 --- a/recovery.cpp +++ b/recovery.cpp @@ -178,6 +178,15 @@ bool ask_to_continue_unverified(Device* device) { } } +bool ask_to_continue_downgrade(Device* device) { + if (get_build_type() == "user") { + return false; + } else { + device->GetUI()->SetProgressType(RecoveryUI::EMPTY); + return yes_no(device, "This package will downgrade your system", "Install anyway?"); + } +} + static bool ask_to_wipe_data(Device* device) { std::vector<std::string> headers{ "Format user data?", "This includes internal storage.", "THIS CANNOT BE UNDONE!" }; std::vector<std::string> items{ " Cancel", " Format data" }; |
