summaryrefslogtreecommitdiffstats
path: root/wear_ui.cpp
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2018-05-02 00:56:05 +0200
committerTao Bao <tbao@google.com>2018-05-03 21:31:18 +0200
commit1fe1afe863fde957051774cf2d9936c314d342a2 (patch)
tree40ece1d1f510c39df717316764c23c1c88b0630c /wear_ui.cpp
parentMerge "updater_sample: update ui and README, clean-up" (diff)
downloadandroid_bootable_recovery-1fe1afe863fde957051774cf2d9936c314d342a2.tar
android_bootable_recovery-1fe1afe863fde957051774cf2d9936c314d342a2.tar.gz
android_bootable_recovery-1fe1afe863fde957051774cf2d9936c314d342a2.tar.bz2
android_bootable_recovery-1fe1afe863fde957051774cf2d9936c314d342a2.tar.lz
android_bootable_recovery-1fe1afe863fde957051774cf2d9936c314d342a2.tar.xz
android_bootable_recovery-1fe1afe863fde957051774cf2d9936c314d342a2.tar.zst
android_bootable_recovery-1fe1afe863fde957051774cf2d9936c314d342a2.zip
Diffstat (limited to '')
-rw-r--r--wear_ui.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/wear_ui.cpp b/wear_ui.cpp
index d21f83542..f157d3ca3 100644
--- a/wear_ui.cpp
+++ b/wear_ui.cpp
@@ -20,6 +20,7 @@
#include <string.h>
#include <string>
+#include <vector>
#include <android-base/properties.h>
#include <android-base/strings.h>
@@ -88,13 +89,12 @@ void WearRecoveryUI::update_progress_locked() {
void WearRecoveryUI::SetStage(int /* current */, int /* max */) {}
-void WearRecoveryUI::StartMenu(const char* const* headers, const char* const* items,
- int initial_selection) {
+void WearRecoveryUI::StartMenu(const std::vector<std::string>& headers,
+ const std::vector<std::string>& items, size_t initial_selection) {
pthread_mutex_lock(&updateMutex);
if (text_rows_ > 0 && text_cols_ > 0) {
menu_ = std::make_unique<Menu>(scrollable_menu_, text_rows_ - kMenuUnusableRows - 1,
text_cols_ - 1, headers, items, initial_selection);
-
update_screen_locked();
}
pthread_mutex_unlock(&updateMutex);