recovery: Always use the text menu for rescue party
* Until now, we were relying on:
Graphic surface doesn't fit into the screen. [...]
Failed to initialize graphic menu, falling back to use the text menu.
Change-Id: I22ced1a735fc82e15b67b826a730c593dcbb788f
diff --git a/recovery_ui/screen_ui.cpp b/recovery_ui/screen_ui.cpp
index b101502..34c71b0 100644
--- a/recovery_ui/screen_ui.cpp
+++ b/recovery_ui/screen_ui.cpp
@@ -1512,9 +1512,7 @@
size_t ScreenRecoveryUI::ShowPromptWipeDataMenu(const std::vector<std::string>& backup_headers,
const std::vector<std::string>& backup_items,
const std::function<int(int, bool)>& key_handler) {
- auto wipe_data_menu = CreateMenu(wipe_data_menu_header_text_.get(),
- { try_again_text_.get(), factory_data_reset_text_.get() },
- backup_headers, backup_items, 0);
+ auto wipe_data_menu = CreateMenu(backup_headers, backup_items, 0);
if (wipe_data_menu == nullptr) {
return 0;
}