Hide "mount USB storage" option from mount menu when the board has a virtual sdcard
Change-Id: I4e59768e9f34f0fb33d88ad382feaa2515d70bc4
This commit is contained in:
parent
9487d2965f
commit
e510810c71
@ -40,7 +40,7 @@ LOCAL_CFLAGS += -DRECOVERY_VERSION="$(RECOVERY_VERSION)"
|
||||
RECOVERY_API_VERSION := 2
|
||||
LOCAL_CFLAGS += -DRECOVERY_API_VERSION=$(RECOVERY_API_VERSION)
|
||||
|
||||
BOARD_RECOVERY_DEFINES := BOARD_HAS_NO_SELECT_BUTTON BOARD_HAS_SMALL_RECOVERY BOARD_LDPI_RECOVERY BOARD_UMS_LUNFILE BOARD_RECOVERY_ALWAYS_WIPES BOARD_RECOVERY_HANDLES_MOUNT
|
||||
BOARD_RECOVERY_DEFINES := BOARD_HAS_NO_SELECT_BUTTON BOARD_HAS_SMALL_RECOVERY BOARD_LDPI_RECOVERY BOARD_UMS_LUNFILE BOARD_RECOVERY_ALWAYS_WIPES BOARD_RECOVERY_HANDLES_MOUNT BOARD_USES_VIRTUAL_SDCARD
|
||||
|
||||
$(foreach board_define,$(BOARD_RECOVERY_DEFINES), \
|
||||
$(if $($(board_define)), \
|
||||
|
@ -669,6 +669,7 @@ void show_partition_menu()
|
||||
static char* confirm_format = "Confirm format?";
|
||||
static char* confirm = "Yes - Format";
|
||||
char confirm_string[255];
|
||||
int ptr = 0;
|
||||
|
||||
for (;;)
|
||||
{
|
||||
@ -690,8 +691,11 @@ void show_partition_menu()
|
||||
options[mountable_volumes+i] = e->txt;
|
||||
}
|
||||
|
||||
#ifndef BOARD_USES_VIRTUAL_SDCARD
|
||||
options[mountable_volumes+formatable_volumes] = "mount USB storage";
|
||||
options[mountable_volumes+formatable_volumes + 1] = NULL;
|
||||
ptr = 1;
|
||||
#endif
|
||||
options[mountable_volumes+formatable_volumes + ptr] = NULL;
|
||||
|
||||
int chosen_item = get_menu_selection(headers, &options, 0, 0);
|
||||
if (chosen_item == GO_BACK)
|
||||
|
Loading…
Reference in New Issue
Block a user