recovery_ui: Remove redundant menu creation.

Test: Boot into recovery and "Run graphics test".
Change-Id: Icbf1c230b4af57cf32b3c7a4b30ddbabc21d5618
This commit is contained in:
Tao Bao 2019-06-27 09:07:04 -07:00
parent db0a68e6b7
commit fa8e02af7c

View file

@ -1263,7 +1263,7 @@ size_t ScreenRecoveryUI::ShowMenu(const std::vector<std::string>& headers,
return initial_selection; return initial_selection;
} }
return ShowMenu(CreateMenu(headers, items, initial_selection), menu_only, key_handler); return ShowMenu(std::move(menu), menu_only, key_handler);
} }
size_t ScreenRecoveryUI::ShowPromptWipeDataMenu(const std::vector<std::string>& backup_headers, size_t ScreenRecoveryUI::ShowPromptWipeDataMenu(const std::vector<std::string>& backup_headers,