From 44e8f6ec9004fb57ae77f9bf80f4a4db0c7b8c9e Mon Sep 17 00:00:00 2001 From: Steve Kondik Date: Wed, 5 Aug 2015 17:41:34 -0700 Subject: 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 --- screen_ui.cpp | 2 ++ 1 file changed, 2 insertions(+) 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() { -- cgit v1.1