diff options
author | Tao Bao <tbao@google.com> | 2018-05-11 19:54:10 +0200 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2018-05-11 19:54:10 +0200 |
commit | bd32e1b50b5d88a4c500b4f26ea6b7a0c7e87f93 (patch) | |
tree | 9ddd68a37808e4a80e02fade1b24c9db1b20075d /recovery.cpp | |
parent | Merge "updater_sample: add HAL compatibility check" (diff) | |
parent | Merge "recovery: Configure device menu based on runtime info." (diff) | |
download | android_bootable_recovery-bd32e1b50b5d88a4c500b4f26ea6b7a0c7e87f93.tar android_bootable_recovery-bd32e1b50b5d88a4c500b4f26ea6b7a0c7e87f93.tar.gz android_bootable_recovery-bd32e1b50b5d88a4c500b4f26ea6b7a0c7e87f93.tar.bz2 android_bootable_recovery-bd32e1b50b5d88a4c500b4f26ea6b7a0c7e87f93.tar.lz android_bootable_recovery-bd32e1b50b5d88a4c500b4f26ea6b7a0c7e87f93.tar.xz android_bootable_recovery-bd32e1b50b5d88a4c500b4f26ea6b7a0c7e87f93.tar.zst android_bootable_recovery-bd32e1b50b5d88a4c500b4f26ea6b7a0c7e87f93.zip |
Diffstat (limited to 'recovery.cpp')
-rw-r--r-- | recovery.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/recovery.cpp b/recovery.cpp index b11298fb4..e427998a8 100644 --- a/recovery.cpp +++ b/recovery.cpp @@ -1182,6 +1182,10 @@ int start_recovery(int argc, char** argv) { } ui = device->GetUI(); + if (!has_cache) { + device->RemoveMenuItemForAction(Device::WIPE_CACHE); + } + // Set background string to "installing security update" for security update, // otherwise set it to "installing system update". ui->SetSystemUpdateText(security_update); |