diff options
author | Doug Zongker <dougz@android.com> | 2010-04-08 14:36:55 -0700 |
---|---|---|
committer | Doug Zongker <dougz@android.com> | 2010-04-08 14:36:55 -0700 |
commit | be598881d079511385a88b12b7a14b97e63dc85e (patch) | |
tree | 9aa801d27685f8f247ff7b72bd94529192570e7b /ui.c | |
parent | 6102227b0ba7fccfd44c4d2038d1eb6e946147b5 (diff) | |
download | bootable_recovery-be598881d079511385a88b12b7a14b97e63dc85e.zip bootable_recovery-be598881d079511385a88b12b7a14b97e63dc85e.tar.gz bootable_recovery-be598881d079511385a88b12b7a14b97e63dc85e.tar.bz2 |
support installing any .zip file on the sdcard
Replaces the "install sdcard:update zip" menu option with one that
displays a menu of zip files (and subdirs) on the sdcard and lets you
pick which one to install.
Change-Id: I85c94c0e9bc8e05ca52031fc29ca2624c2695ced
Diffstat (limited to 'ui.c')
-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); |