summaryrefslogtreecommitdiffstats
path: root/recovery.cpp
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2018-05-09 20:05:44 +0200
committerTao Bao <tbao@google.com>2018-05-11 05:46:46 +0200
commite5d2c25ecf8aeaa1f1dee9215cb70b82a9f74d45 (patch)
treecf03b5a184d097fc8a2169c3c6cd2e7b5db5ab56 /recovery.cpp
parentMerge "Document the clang-format usage." (diff)
downloadandroid_bootable_recovery-e5d2c25ecf8aeaa1f1dee9215cb70b82a9f74d45.tar
android_bootable_recovery-e5d2c25ecf8aeaa1f1dee9215cb70b82a9f74d45.tar.gz
android_bootable_recovery-e5d2c25ecf8aeaa1f1dee9215cb70b82a9f74d45.tar.bz2
android_bootable_recovery-e5d2c25ecf8aeaa1f1dee9215cb70b82a9f74d45.tar.lz
android_bootable_recovery-e5d2c25ecf8aeaa1f1dee9215cb70b82a9f74d45.tar.xz
android_bootable_recovery-e5d2c25ecf8aeaa1f1dee9215cb70b82a9f74d45.tar.zst
android_bootable_recovery-e5d2c25ecf8aeaa1f1dee9215cb70b82a9f74d45.zip
Diffstat (limited to '')
-rw-r--r--recovery.cpp4
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);