From fa8e02af7c51ee0f112e6d1b057208433566c6e4 Mon Sep 17 00:00:00 2001 From: Tao Bao Date: Thu, 27 Jun 2019 09:07:04 -0700 Subject: [PATCH] recovery_ui: Remove redundant menu creation. Test: Boot into recovery and "Run graphics test". Change-Id: Icbf1c230b4af57cf32b3c7a4b30ddbabc21d5618 --- recovery_ui/screen_ui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recovery_ui/screen_ui.cpp b/recovery_ui/screen_ui.cpp index 82300452..f2af66c4 100644 --- a/recovery_ui/screen_ui.cpp +++ b/recovery_ui/screen_ui.cpp @@ -1263,7 +1263,7 @@ size_t ScreenRecoveryUI::ShowMenu(const std::vector& headers, 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& backup_headers,