diff options
author | Doug Zongker <dougz@android.com> | 2010-09-15 20:12:34 +0200 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2010-09-15 20:12:34 +0200 |
commit | 76445f3aef388aac78369c2107ea61a1638dfa91 (patch) | |
tree | b153dacf0dcb4535496dd6854a68a8f998f02472 /ui.c | |
parent | am 8e5e4dad: close update package before installing; allow remount (diff) | |
parent | (cherry-pick) support installing any .zip file on the sdcard (diff) | |
download | android_bootable_recovery-76445f3aef388aac78369c2107ea61a1638dfa91.tar android_bootable_recovery-76445f3aef388aac78369c2107ea61a1638dfa91.tar.gz android_bootable_recovery-76445f3aef388aac78369c2107ea61a1638dfa91.tar.bz2 android_bootable_recovery-76445f3aef388aac78369c2107ea61a1638dfa91.tar.lz android_bootable_recovery-76445f3aef388aac78369c2107ea61a1638dfa91.tar.xz android_bootable_recovery-76445f3aef388aac78369c2107ea61a1638dfa91.tar.zst android_bootable_recovery-76445f3aef388aac78369c2107ea61a1638dfa91.zip |
Diffstat (limited to '')
-rw-r--r-- | ui.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -425,7 +425,7 @@ void ui_print(const char *fmt, ...) pthread_mutex_unlock(&gUpdateMutex); } -void ui_start_menu(char** headers, char** items) { +void ui_start_menu(char** headers, char** items, int initial_selection) { int i; pthread_mutex_lock(&gUpdateMutex); if (text_rows > 0 && text_cols > 0) { @@ -442,7 +442,7 @@ void ui_start_menu(char** headers, char** items) { } menu_items = i - menu_top; show_menu = 1; - menu_sel = 0; + menu_sel = initial_selection; update_screen_locked(); } pthread_mutex_unlock(&gUpdateMutex); |