diff options
author | Ricardo Gomez <ricardo.gomez331@gmail.com> | 2013-07-06 01:13:52 +0200 |
---|---|---|
committer | Dees_Troy <dees_troy@teamw.in> | 2013-08-25 23:10:08 +0200 |
commit | c9ecd4473c5763fe6c372e6fead1cc1f6b7714cf (patch) | |
tree | 017995b67d262612b59507fffd51fb57b42b9179 /gui/action.cpp | |
parent | Unify indentation and little clean-up in TWRP files (diff) | |
download | android_bootable_recovery-c9ecd4473c5763fe6c372e6fead1cc1f6b7714cf.tar android_bootable_recovery-c9ecd4473c5763fe6c372e6fead1cc1f6b7714cf.tar.gz android_bootable_recovery-c9ecd4473c5763fe6c372e6fead1cc1f6b7714cf.tar.bz2 android_bootable_recovery-c9ecd4473c5763fe6c372e6fead1cc1f6b7714cf.tar.lz android_bootable_recovery-c9ecd4473c5763fe6c372e6fead1cc1f6b7714cf.tar.xz android_bootable_recovery-c9ecd4473c5763fe6c372e6fead1cc1f6b7714cf.tar.zst android_bootable_recovery-c9ecd4473c5763fe6c372e6fead1cc1f6b7714cf.zip |
Diffstat (limited to 'gui/action.cpp')
-rw-r--r-- | gui/action.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gui/action.cpp b/gui/action.cpp index ee3373154..d67e697b0 100644 --- a/gui/action.cpp +++ b/gui/action.cpp @@ -40,8 +40,9 @@ #include "../openrecoveryscript.hpp" #include "../adb_install.h" +#ifndef TW_NO_SCREEN_TIMEOUT #include "blanktimer.hpp" - +#endif extern "C" { #include "../twcommon.h" #include "../minuitwrp/minui.h" @@ -59,7 +60,9 @@ int gui_start(); #include "rapidxml.hpp" #include "objects.hpp" +#ifndef TW_NO_SCREEN_TIMEOUT extern blanktimer blankTimer; +#endif void curtainClose(void); @@ -339,7 +342,9 @@ void GUIAction::operation_end(const int operation_status, const int simulate) } DataManager::SetValue("tw_operation_state", 1); DataManager::SetValue(TW_ACTION_BUSY, 0); +#ifndef TW_NO_SCREEN_TIMEOUT blankTimer.resetTimerAndUnblank(); +#endif } int GUIAction::doAction(Action action, int isThreaded /* = 0 */) |