summaryrefslogtreecommitdiffstats
path: root/gui/pages.cpp
diff options
context:
space:
mode:
authorDees Troy <dees_troy@teamw.in>2013-07-01 22:34:53 +0200
committerGerrit Code Review <gerrit@5.9.244.119>2013-07-01 22:34:53 +0200
commitc322a1bc501ae6c37db1231ac48071b616c95354 (patch)
tree26a029a04c28ff05a8e3b1d5a1f343f93a29119c /gui/pages.cpp
parentMerge "verifier_test : fix the call to verify_file" into twrp2.5 (diff)
parentDo not render the GUI when the blanktimer turns off the display. (diff)
downloadandroid_bootable_recovery-c322a1bc501ae6c37db1231ac48071b616c95354.tar
android_bootable_recovery-c322a1bc501ae6c37db1231ac48071b616c95354.tar.gz
android_bootable_recovery-c322a1bc501ae6c37db1231ac48071b616c95354.tar.bz2
android_bootable_recovery-c322a1bc501ae6c37db1231ac48071b616c95354.tar.lz
android_bootable_recovery-c322a1bc501ae6c37db1231ac48071b616c95354.tar.xz
android_bootable_recovery-c322a1bc501ae6c37db1231ac48071b616c95354.tar.zst
android_bootable_recovery-c322a1bc501ae6c37db1231ac48071b616c95354.zip
Diffstat (limited to 'gui/pages.cpp')
-rw-r--r--gui/pages.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/gui/pages.cpp b/gui/pages.cpp
index 11fe9b080..86d4dff9f 100644
--- a/gui/pages.cpp
+++ b/gui/pages.cpp
@@ -41,8 +41,10 @@ extern "C" {
#include "rapidxml.hpp"
#include "objects.hpp"
+#include "blanktimer.hpp"
extern int gGuiRunning;
+extern blanktimer blankTimer;
std::map<std::string, PageSet*> PageManager::mPageSets;
PageSet* PageManager::mCurrentSet;
@@ -890,6 +892,9 @@ int PageManager::Render(void)
int PageManager::Update(void)
{
+ if(blankTimer.IsScreenOff())
+ return 0;
+
return (mCurrentSet ? mCurrentSet->Update() : -1);
}