diff options
author | Tao Bao <tbao@google.com> | 2018-05-11 19:34:01 +0200 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2018-05-11 19:34:01 +0200 |
commit | e498ef2f034cf223b06287b904d1a7d61faba40a (patch) | |
tree | 9ddd68a37808e4a80e02fade1b24c9db1b20075d /device.h | |
parent | Merge "updater_sample: add HAL compatibility check" (diff) | |
parent | recovery: Configure device menu based on runtime info. (diff) | |
download | android_bootable_recovery-e498ef2f034cf223b06287b904d1a7d61faba40a.tar android_bootable_recovery-e498ef2f034cf223b06287b904d1a7d61faba40a.tar.gz android_bootable_recovery-e498ef2f034cf223b06287b904d1a7d61faba40a.tar.bz2 android_bootable_recovery-e498ef2f034cf223b06287b904d1a7d61faba40a.tar.lz android_bootable_recovery-e498ef2f034cf223b06287b904d1a7d61faba40a.tar.xz android_bootable_recovery-e498ef2f034cf223b06287b904d1a7d61faba40a.tar.zst android_bootable_recovery-e498ef2f034cf223b06287b904d1a7d61faba40a.zip |
Diffstat (limited to 'device.h')
-rw-r--r-- | device.h | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -49,7 +49,7 @@ class Device { RUN_LOCALE_TEST = 12, }; - explicit Device(RecoveryUI* ui) : ui_(ui) {} + explicit Device(RecoveryUI* ui); virtual ~Device() {} // Returns a raw pointer to the RecoveryUI object. @@ -96,6 +96,10 @@ class Device { // here and return NO_ACTION. virtual BuiltinAction InvokeMenuItem(size_t menu_position); + // Removes the menu item for the given action. This allows tailoring the menu based on the + // runtime info, such as the availability of /cache or /sdcard. + virtual void RemoveMenuItemForAction(Device::BuiltinAction action); + // Called before and after we do a wipe data/factory reset operation, either via a reboot from the // main system with the --wipe_data flag, or when the user boots into recovery image manually and // selects the option from the menu, to perform whatever device-specific wiping actions as needed. |