aboutsummaryrefslogtreecommitdiffstats
path: root/ui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ui.cpp')
-rw-r--r--ui.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/ui.cpp b/ui.cpp
index 3930cb78..792e22b4 100644
--- a/ui.cpp
+++ b/ui.cpp
@@ -220,6 +220,12 @@ bool RecoveryUI::Init(const std::string& /* locale */) {
return true;
}
+void RecoveryUI::Stop() {
+ if (!android::base::WriteStringToFile("0", BRIGHTNESS_FILE)) {
+ PLOG(WARNING) << "Failed to write brightness file";
+ }
+}
+
void RecoveryUI::OnTouchEvent() {
Point delta = touch_pos_ - touch_start_;
enum SwipeDirection { UP, DOWN, RIGHT, LEFT } direction;