aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Kondik <steve@cyngn.com>2015-08-05 17:41:34 -0700
committerSteve Kondik <steve@cyngn.com>2016-02-08 14:55:09 -0800
commit44e8f6ec9004fb57ae77f9bf80f4a4db0c7b8c9e (patch)
tree8cebb84502b943ff0115a4cb629b94edbc9e3a50
parent054fa8d47c694d3d8182a27581f209e347823cbe (diff)
downloadbootable_recovery-44e8f6ec9004fb57ae77f9bf80f4a4db0c7b8c9e.zip
bootable_recovery-44e8f6ec9004fb57ae77f9bf80f4a4db0c7b8c9e.tar.gz
bootable_recovery-44e8f6ec9004fb57ae77f9bf80f4a4db0c7b8c9e.tar.bz2
sr: Deep rainbow integration
* Some devices may want to react in new and innovative ways to the invocation of rainbow mode. Allow for this deep integration. Change-Id: I088487e42b71ebfa80ca3976be328f0336ec0805
-rw-r--r--screen_ui.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/screen_ui.cpp b/screen_ui.cpp
index cae78c8..8e6c733 100644
--- a/screen_ui.cpp
+++ b/screen_ui.cpp
@@ -39,6 +39,7 @@
#include "minui/minui.h"
#include "screen_ui.h"
#include "ui.h"
+#include "cutils/properties.h"
// Return the current time as a double (including fractions of a second).
static double now() {
@@ -422,6 +423,7 @@ void ScreenRecoveryUI::OMGRainbows()
{
rainbow = rainbow ? false : true;
set_rainbow_mode(rainbow);
+ property_set("sys.rainbow.recovery", rainbow ? "1" : "0");
}
void ScreenRecoveryUI::ProgressThreadLoop() {