summaryrefslogtreecommitdiffstats
path: root/gui/action.cpp
diff options
context:
space:
mode:
authorMatt Mower <mowerm@gmail.com>2016-01-21 01:12:47 +0100
committerDees Troy <dees_troy@teamw.in>2017-01-18 19:55:33 +0100
commit9472ba1d39e85b11c28d16b793fac1150ba153e5 (patch)
treea7d671186626ffe8c8b9a0bfb2d7e8c6bfc72424 /gui/action.cpp
parentSELinux can be assumed for Android 4.4+ (diff)
downloadandroid_bootable_recovery-9472ba1d39e85b11c28d16b793fac1150ba153e5.tar
android_bootable_recovery-9472ba1d39e85b11c28d16b793fac1150ba153e5.tar.gz
android_bootable_recovery-9472ba1d39e85b11c28d16b793fac1150ba153e5.tar.bz2
android_bootable_recovery-9472ba1d39e85b11c28d16b793fac1150ba153e5.tar.lz
android_bootable_recovery-9472ba1d39e85b11c28d16b793fac1150ba153e5.tar.xz
android_bootable_recovery-9472ba1d39e85b11c28d16b793fac1150ba153e5.tar.zst
android_bootable_recovery-9472ba1d39e85b11c28d16b793fac1150ba153e5.zip
Diffstat (limited to '')
-rw-r--r--gui/action.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/gui/action.cpp b/gui/action.cpp
index 7d34da8a0..ef110bcfd 100644
--- a/gui/action.cpp
+++ b/gui/action.cpp
@@ -198,6 +198,7 @@ GUIAction::GUIAction(xml_node<>* node)
ADD_ACTION(mountsystemtoggle);
ADD_ACTION(setlanguage);
ADD_ACTION(checkforapp);
+ ADD_ACTION(togglebacklight);
// remember actions that run in the caller thread
for (mapFunc::const_iterator it = mf.begin(); it != mf.end(); ++it)
@@ -1865,6 +1866,12 @@ int GUIAction::setlanguage(std::string arg __unused)
return 0;
}
+int GUIAction::togglebacklight(std::string arg __unused)
+{
+ blankTimer.toggleBlank();
+ return 0;
+}
+
int GUIAction::setbootslot(std::string arg)
{
operation_start("Set Boot Slot");