summaryrefslogtreecommitdiffstats
path: root/device.h
diff options
context:
space:
mode:
authorJerry Zhang <zhangjerry@google.com>2018-05-03 02:15:03 +0200
committerTao Bao <tbao@google.com>2018-05-08 08:09:54 +0200
commit2dea53ef2b96fe09083d9cad42b5f07b6ad83ab5 (patch)
tree9e2d709525aff9250bc0d1c699b4c877722959ba /device.h
parentMerge "recovery: Refactor logging code into logging.cpp" (diff)
downloadandroid_bootable_recovery-2dea53ef2b96fe09083d9cad42b5f07b6ad83ab5.tar
android_bootable_recovery-2dea53ef2b96fe09083d9cad42b5f07b6ad83ab5.tar.gz
android_bootable_recovery-2dea53ef2b96fe09083d9cad42b5f07b6ad83ab5.tar.bz2
android_bootable_recovery-2dea53ef2b96fe09083d9cad42b5f07b6ad83ab5.tar.lz
android_bootable_recovery-2dea53ef2b96fe09083d9cad42b5f07b6ad83ab5.tar.xz
android_bootable_recovery-2dea53ef2b96fe09083d9cad42b5f07b6ad83ab5.tar.zst
android_bootable_recovery-2dea53ef2b96fe09083d9cad42b5f07b6ad83ab5.zip
Diffstat (limited to '')
-rw-r--r--device.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/device.h b/device.h
index 8788b2d14..9510fbedb 100644
--- a/device.h
+++ b/device.h
@@ -58,6 +58,12 @@ class Device {
return ui_;
}
+ // Sets the UI object to the given UI. Used to override the default UI in case initialization
+ // failed, or we want a stub for some reason.
+ virtual void SetUI(RecoveryUI* ui) {
+ ui_ = ui;
+ }
+
// Called when recovery starts up (after the UI has been obtained and initialized and after the
// arguments have been parsed, but before anything else).
virtual void StartRecovery() {};